libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::raw_decoder_t Class Reference

#include <raw_decoder.hpp>

Inheritance diagram for zmq::raw_decoder_t:
Collaboration diagram for zmq::raw_decoder_t:

Public Member Functions

 raw_decoder_t (size_t bufsize_)
 
virtual ~raw_decoder_t ()
 
virtual int decode (const unsigned char *data_, size_t size_, size_t &processed)
 
virtual void get_buffer (unsigned char **data_, size_t *size_)
 
virtual msg_tmsg ()
 
virtual void resize_buffer (size_t)
 
- Public Member Functions inherited from zmq::i_decoder
virtual ~i_decoder ()
 

Private Member Functions

 raw_decoder_t (const raw_decoder_t &)
 
void operator= (const raw_decoder_t &)
 

Private Attributes

shared_message_memory_allocator allocator
 
msg_t in_progress
 

Detailed Description

Definition at line 44 of file raw_decoder.hpp.

Constructor & Destructor Documentation

zmq::raw_decoder_t::raw_decoder_t ( size_t  bufsize_)

Definition at line 42 of file raw_decoder.cpp.

References errno_assert, in_progress, and zmq::msg_t::init().

Here is the call graph for this function:

zmq::raw_decoder_t::~raw_decoder_t ( )
virtual

Definition at line 49 of file raw_decoder.cpp.

References zmq::msg_t::close(), errno_assert, and in_progress.

Here is the call graph for this function:

zmq::raw_decoder_t::raw_decoder_t ( const raw_decoder_t )
private

Member Function Documentation

void zmq::raw_decoder_t::get_buffer ( unsigned char **  data_,
size_t *  size_ 
)
virtual

Implements zmq::i_decoder.

Definition at line 55 of file raw_decoder.cpp.

References zmq::shared_message_memory_allocator::allocate(), allocator, and zmq::shared_message_memory_allocator::size().

Here is the call graph for this function:

virtual msg_t* zmq::raw_decoder_t::msg ( )
inlinevirtual

Implements zmq::i_decoder.

Definition at line 58 of file raw_decoder.hpp.

References in_progress.

void zmq::raw_decoder_t::operator= ( const raw_decoder_t )
private
virtual void zmq::raw_decoder_t::resize_buffer ( size_t  )
inlinevirtual

Implements zmq::i_decoder.

Definition at line 60 of file raw_decoder.hpp.

Member Data Documentation

shared_message_memory_allocator zmq::raw_decoder_t::allocator
private

Definition at line 65 of file raw_decoder.hpp.

Referenced by decode(), and get_buffer().

msg_t zmq::raw_decoder_t::in_progress
private

Definition at line 63 of file raw_decoder.hpp.

Referenced by decode(), msg(), raw_decoder_t(), and ~raw_decoder_t().