Overview Tutorial API reference Examples Build Download ZmqMessage 0.1 - 21 Oct 2011

ZmqMessage::RawMessage Struct Reference

Describes memory region with raw data. More...

#include <RawMessage.hpp>

List of all members.

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


Detailed Description

Describes memory region with raw data.

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


Constructor & Destructor Documentation

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.


Member Data Documentation

const void* ZmqMessage::RawMessage::cptr

union { ... } ZmqMessage::RawMessage::data

zmq::free_fn* ZmqMessage::RawMessage::deleter

void* ZmqMessage::RawMessage::ptr

size_t ZmqMessage::RawMessage::sz


The documentation for this struct was generated from the following file:
ZmqMessage 0.1 — open source software, support@zmqmessage.org