Frame.rebuild

Reinitializes the Frame object to a specified size.

This function will first call $(FREF Frame.close) to release the resources associated with the message frame, and then it will initialize it anew, exactly as if it were constructed with $(LINK2 #Frame.opCall_size,Frame(size)).

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_msg_close()) followed by $(ZMQREF zmq_msg_init_size()).

Examples

auto msg = Frame(256);
assert (msg.size == 256);
msg.rebuild(1024);
assert (msg.size == 1024);

Meta