Frame.data

Retrieves the message frame content.

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

Detailed Description

Corresponds to

$(ZMQREF zmq_msg_data())

Examples

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

Meta