Moves message content to another message.
move() returns a new Message object, while moveTo(dest) moves the contents of this Message to dest. dest must be a valid (i.e. initialised) Message.
ZmqException if $(ZMQ) reports an error.
$(ZMQREF zmq_msg_move())
import std.string: representation; auto msg1 = Message(3); msg1.data[] = "foo".representation; auto msg2 = msg1.move(); assert (msg1.size == 0); assert (msg2.data.asString() == "foo");
See Implementation
Moves message content to another message.
move() returns a new Message object, while moveTo(dest) moves the contents of this Message to dest. dest must be a valid (i.e. initialised) Message.