Barry::Data Class Reference

List of all members.

Detailed Description

Definition at line 31 of file data.h.

Public Member Functions

 Data ()
 Data (int endpoint, size_t startsize=0x4000)
 Data (const void *ValidData, size_t size)
 Data (const Data &other)
 ~Data ()
void InputHexLine (std::istream &is)
void DumpHexLine (std::ostream &os, size_t index, size_t size) const
void DumpHex (std::ostream &os) const
int GetEndpoint () const
const unsigned char * GetData () const
size_t GetSize () const
unsigned char * GetBuffer (size_t requiredsize=0)
size_t GetBufSize () const
void ReleaseBuffer (int datasize=-1)
void AppendHexString (const char *str)
 Append bytes of data based on str.
void Zap ()
 set buffer to 0 and remove all data
Dataoperator= (const Data &other)

Static Public Member Functions

static void PrintAscii (bool setting)
static bool PrintAscii ()

Protected Member Functions

void MakeSpace (size_t desiredsize)
void CopyOnWrite (size_t desiredsize)


Member Function Documentation

void Barry::Data::AppendHexString ( const char *  str  ) 

Append bytes of data based on str.

Definition at line 249 of file data.cc.

References CopyOnWrite(), and MakeSpace().

void Barry::Data::Zap (  ) 

set buffer to 0 and remove all data

Definition at line 263 of file data.cc.

Referenced by Barry::Contact::BuildFields(), Barry::Calendar::BuildFields(), and Barry::Socket::Packet().


The documentation for this class was generated from the following files:
Generated on Wed Sep 24 21:27:32 2008 for Barry by  doxygen 1.5.1