Frame.moveTo

Moves frame content to another message frame.

move() returns a new Frame object, while moveTo(dest) moves the contents of this Frame to dest. dest must be a valid (i.e. initialized) Frame.

struct Frame
@safe
void
moveTo
()

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_msg_move())

Examples

import std.string: representation;
auto msg1 = Frame(3);
msg1.data[] = "foo".representation;
auto msg2 = msg1.move();
assert (msg1.size == 0);
assert (msg2.data.asString() == "foo");

Meta