Message.data

Retrieves the message content.

More...
struct Message
@safe @property @trusted nothrow
ubyte[]
data
()

Detailed Description

Corresponds to

$(ZMQREF zmq_msg_data())

Examples

import std.string: representation;
auto msg = Message(3);
assert(msg.data.length == 3);
msg.data[] = "foo".representation; // Slice operator -> array copy.
assert(msg.data.asString() == "foo");

Meta