Buffer Class Reference

#include <buffer.h>

Inheritance diagram for Buffer:

Packet satp::SATP List of all members.

Public Member Functions

 Buffer ()
 Buffer (u_int32_t length)
 Buffer (u_int8_t *data, u_int32_t length)
virtual ~Buffer ()
 Buffer (const Buffer &src)
void operator= (const Buffer &src)
void operator= (const seq_nr_t &src)
void operator= (const sender_id_t &src)
virtual Buffer operator^ (const Buffer &xor_by) const
virtual Buffer leftByteShift (u_int32_t width) const
virtual Buffer rightByteShift (u_int32_t width) const
u_int32_t resizeFront (u_int32_t new_length)
u_int32_t resizeBack (u_int32_t new_length)
u_int32_t getLength () const
u_int8_tgetBuf ()
u_int8_toperator[] (u_int32_t index)
u_int8_t operator[] (u_int32_t index) const
void printHexDump () const
 operator u_int8_t * ()

Protected Attributes

u_int8_tbuf_
u_int32_t length_

Friends

class TunDevice
class UDPPacketSource

Constructor & Destructor Documentation

Buffer::Buffer (  ) 

Buffer::Buffer ( u_int32_t  length  ) 

Buffer::Buffer ( u_int8_t data,
u_int32_t  length 
)

Buffer::~Buffer (  )  [virtual]

Buffer::Buffer ( const Buffer src  ) 


Member Function Documentation

void Buffer::operator= ( const Buffer src  ) 

void Buffer::operator= ( const seq_nr_t src  ) 

void Buffer::operator= ( const sender_id_t src  ) 

Buffer Buffer::operator^ ( const Buffer xor_by  )  const [virtual]

Buffer Buffer::leftByteShift ( u_int32_t  width  )  const [virtual]

Buffer Buffer::rightByteShift ( u_int32_t  width  )  const [virtual]

u_int32_t Buffer::resizeFront ( u_int32_t  new_length  ) 

u_int32_t Buffer::resizeBack ( u_int32_t  new_length  ) 

u_int32_t Buffer::getLength (  )  const

u_int8_t * Buffer::getBuf (  ) 

u_int8_t & Buffer::operator[] ( u_int32_t  index  ) 

u_int8_t Buffer::operator[] ( u_int32_t  index  )  const

void Buffer::printHexDump (  )  const

Buffer::operator u_int8_t * (  ) 


Friends And Related Function Documentation

friend class TunDevice [friend]

friend class UDPPacketSource [friend]


Member Data Documentation

u_int8_t* Buffer::buf_ [protected]

u_int32_t Buffer::length_ [protected]


The documentation for this class was generated from the following files:
Generated on Mon Dec 3 11:49:25 2007 for anytun by  doxygen 1.5.1