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.
ZmqException if $(ZMQ) reports an error.
$(ZMQREF zmq_msg_move())
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");
See Implementation
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.