Overview Tutorial API reference Examples Build Download | ZmqMessage 0.1 - 21 Oct 2011 |
#include <RawMessage.hpp>
Public Member Functions | |
RawMessage (void *data_p, size_t sz_p, zmq::free_fn *deleter_p) | |
RawMessage (const void *data_p, size_t sz_p) | |
Public Attributes | |
union { | |
void * ptr | |
const void * cptr | |
} | data |
size_t | sz |
zmq::free_fn * | deleter |
When inserted in Outgoing, a new message part will be created. Deleter is ZMQ free function. If deleter = 0, Outgoing will hold COPY of this memory region. Otherwise, no copying will be performed, the memory will be deleted by deleter
ZmqMessage::RawMessage::RawMessage | ( | void * | data_p, | |
size_t | sz_p, | |||
zmq::free_fn * | deleter_p | |||
) | [inline] |
Take ownership on the memory region specified by data_p and sz_p. ZMQ will delete it with deleter_p when sent.
ZmqMessage::RawMessage::RawMessage | ( | const void * | data_p, | |
size_t | sz_p | |||
) | [inline] |
When sending, we will copy memory region specified by data_p and sz_p.
const void* ZmqMessage::RawMessage::cptr |
union { ... } ZmqMessage::RawMessage::data |
zmq::free_fn* ZmqMessage::RawMessage::deleter |
size_t ZmqMessage::RawMessage::sz |