sipxportlib  Version 3.3
Protected Attributes | List of all members
UtlSerialized Class Reference

#include <UtlSerialized.h>

Public Member Functions

Creators
 UtlSerialized ()
 Constructor. More...
 
 UtlSerialized (const UtlSerialized &rhs)
 Copy constructor. More...
 
virtual ~UtlSerialized ()
 Destructor. More...
 
Manipulators
 SERIALIZE_POD_DEFINE (char)
 
 SERIALIZE_POD_DEFINE (short)
 
 SERIALIZE_POD_DEFINE (int)
 
 SERIALIZE_POD_DEFINE (long)
 
 SERIALIZE_POD_DEFINE (unsigned char)
 
 SERIALIZE_POD_DEFINE (unsigned short)
 
 SERIALIZE_POD_DEFINE (unsigned int)
 
 SERIALIZE_POD_DEFINE (unsigned long)
 
 SERIALIZE_POD_DEFINE (void *)
 
OsStatus serialize (const UtlString &val)
 
OsStatus deserialize (UtlString &val)
 
void finishSerialize ()
 Prepare for de-serialization. More...
 
UtlSerializedoperator= (const UtlSerialized &rhs)
 Assignment operator. More...
 
Accessors
size_t getMaxSize () const
 Get size of available space (in bytes). More...
 
size_t getSize () const
 Get size of stored data (in bytes). More...
 
size_t getFreeSize () const
 Get free size in storage (in bytes). More...
 

Protected Attributes

uint8_tmpEnd
 Pointer to the byte right after the end of data. More...
 
uint8_t mData [UTL_SERIALIZED_SIZE]
 Array to serialize data to. More...
 
size_t mSize
 Size of the serialized data. More...
 

Constructor & Destructor Documentation

UtlSerialized ( )
inline

Constructor.

UtlSerialized ( const UtlSerialized rhs)
inline

Copy constructor.

virtual ~UtlSerialized ( )
inlinevirtual

Destructor.

Member Function Documentation

SERIALIZE_POD_DEFINE ( char  )
SERIALIZE_POD_DEFINE ( short  )
SERIALIZE_POD_DEFINE ( int  )
SERIALIZE_POD_DEFINE ( long  )
SERIALIZE_POD_DEFINE ( unsigned  char)
SERIALIZE_POD_DEFINE ( unsigned  short)
SERIALIZE_POD_DEFINE ( unsigned  int)
SERIALIZE_POD_DEFINE ( unsigned  long)
SERIALIZE_POD_DEFINE ( void *  )
OsStatus serialize ( const UtlString val)
inline
OsStatus deserialize ( UtlString val)
inline
void finishSerialize ( )
inline

Prepare for de-serialization.

UtlSerialized& operator= ( const UtlSerialized rhs)
inline

Assignment operator.

size_t getMaxSize ( ) const
inline

Get size of available space (in bytes).

size_t getSize ( ) const
inline

Get size of stored data (in bytes).

size_t getFreeSize ( ) const
inline

Get free size in storage (in bytes).

Member Data Documentation

uint8_t* mpEnd
protected

Pointer to the byte right after the end of data.

uint8_t mData[UTL_SERIALIZED_SIZE]
protected

Array to serialize data to.

size_t mSize
protected

Size of the serialized data.