Frame.opCall

Frame.opCall_size Initializes a $(ZMQ) message frame of a specified size.

  1. Frame opCall()
  2. Frame opCall(size_t size)
    struct Frame
    @safe static
    opCall
    (
    size_t size
    )
  3. Frame opCall(ubyte[] data)

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_msg_init_size())

Examples

auto msg = Frame(123);
assert(msg.size == 123);

Meta