LLDataPackerBinaryBuffer Class Reference

#include <lldatapacker.h>

Inheritance diagram for LLDataPackerBinaryBuffer:

Inheritance graph
[legend]
Collaboration diagram for LLDataPackerBinaryBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLDataPackerBinaryBuffer (U8 *bufferp, S32 size)
 LLDataPackerBinaryBuffer ()
BOOL packString (const char *value, const char *name)
BOOL unpackString (std::string &value, const char *name)
BOOL packBinaryData (const U8 *value, S32 size, const char *name)
BOOL unpackBinaryData (U8 *value, S32 &size, const char *name)
BOOL packBinaryDataFixed (const U8 *value, S32 size, const char *name)
BOOL unpackBinaryDataFixed (U8 *value, S32 size, const char *name)
BOOL packU8 (const U8 value, const char *name)
BOOL unpackU8 (U8 &value, const char *name)
BOOL packU16 (const U16 value, const char *name)
BOOL unpackU16 (U16 &value, const char *name)
BOOL packU32 (const U32 value, const char *name)
BOOL unpackU32 (U32 &value, const char *name)
BOOL packS32 (const S32 value, const char *name)
BOOL unpackS32 (S32 &value, const char *name)
BOOL packF32 (const F32 value, const char *name)
BOOL unpackF32 (F32 &value, const char *name)
BOOL packColor4 (const LLColor4 &value, const char *name)
BOOL unpackColor4 (LLColor4 &value, const char *name)
BOOL packColor4U (const LLColor4U &value, const char *name)
BOOL unpackColor4U (LLColor4U &value, const char *name)
BOOL packVector2 (const LLVector2 &value, const char *name)
BOOL unpackVector2 (LLVector2 &value, const char *name)
BOOL packVector3 (const LLVector3 &value, const char *name)
BOOL unpackVector3 (LLVector3 &value, const char *name)
BOOL packVector4 (const LLVector4 &value, const char *name)
BOOL unpackVector4 (LLVector4 &value, const char *name)
BOOL packUUID (const LLUUID &value, const char *name)
BOOL unpackUUID (LLUUID &value, const char *name)
S32 getCurrentSize () const
S32 getBufferSize () const
void reset ()
void freeBuffer ()
void assignBuffer (U8 *bufferp, S32 size)
const LLDataPackerBinaryBufferoperator= (const LLDataPackerBinaryBuffer &a)
BOOL hasNext () const
void dumpBufferToLog ()

Protected Member Functions

BOOL verifyLength (const S32 data_size, const char *name)

Protected Attributes

U8mBufferp
U8mCurBufferp
S32 mBufferSize


Detailed Description

Definition at line 110 of file lldatapacker.h.


Constructor & Destructor Documentation

LLDataPackerBinaryBuffer::LLDataPackerBinaryBuffer ( U8 bufferp,
S32  size 
) [inline]

Definition at line 113 of file lldatapacker.h.

References LLDataPacker::mWriteEnabled, and TRUE.

LLDataPackerBinaryBuffer::LLDataPackerBinaryBuffer (  )  [inline]

Definition at line 122 of file lldatapacker.h.


Member Function Documentation

BOOL LLDataPackerBinaryBuffer::packString ( const char *  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 173 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_VARIABLE, LLDataPacker::mWriteEnabled, S32, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackString ( std::string &  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 189 of file lldatapacker.cpp.

References mCurBufferp, S32, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packBinaryData ( const U8 value,
S32  size,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 202 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_S32, MVT_VARIABLE, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackBinaryData ( U8 value,
S32 size,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 221 of file lldatapacker.cpp.

References FALSE, htonmemcpy(), llendl, llwarns, mCurBufferp, MVT_S32, MVT_VARIABLE, TRUE, and verifyLength().

Referenced by LLViewerObject::processUpdateMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDataPackerBinaryBuffer::packBinaryDataFixed ( const U8 value,
S32  size,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 242 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_VARIABLE, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackBinaryDataFixed ( U8 value,
S32  size,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 256 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_VARIABLE, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packU8 ( const U8  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 266 of file lldatapacker.cpp.

References mCurBufferp, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackU8 ( U8 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 280 of file lldatapacker.cpp.

References mCurBufferp, TRUE, and verifyLength().

Referenced by LLViewerObjectList::processObjectUpdate(), and LLViewerObject::processUpdateMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDataPackerBinaryBuffer::packU16 ( const U16  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 291 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_U16, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackU16 ( U16 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 305 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_U16, TRUE, and verifyLength().

Referenced by LLViewerObject::processUpdateMessage().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDataPackerBinaryBuffer::packU32 ( const U32  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 316 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_U32, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackU32 ( U32 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 330 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_U32, TRUE, and verifyLength().

Referenced by LLPartSysData::isNullPS(), and LLViewerObjectList::processObjectUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDataPackerBinaryBuffer::packS32 ( const S32  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 341 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_S32, LLDataPacker::mWriteEnabled, S32, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackS32 ( S32 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 355 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_S32, S32, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packF32 ( const F32  value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 366 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_F32, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Referenced by LLViewerThrottleGroup::sendToSim().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackF32 ( F32 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 380 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, MVT_F32, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packColor4 ( const LLColor4 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 391 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLColor4::mV, MVT_LLVector4, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackColor4 ( LLColor4 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 405 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLColor4::mV, MVT_LLVector4, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packColor4U ( const LLColor4U value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 416 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLColor4U::mV, MVT_VARIABLE, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackColor4U ( LLColor4U value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 430 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLColor4U::mV, MVT_VARIABLE, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packVector2 ( const LLVector2 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 442 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLVector2::mV, MVT_F32, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackVector2 ( LLVector2 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 457 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLVector2::mV, MVT_F32, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packVector3 ( const LLVector3 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 469 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLVector3::mV, MVT_LLVector3, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackVector3 ( LLVector3 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 483 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLVector3::mV, MVT_LLVector3, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packVector4 ( const LLVector4 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 493 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLVector4::mV, MVT_LLVector4, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackVector4 ( LLVector4 value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 507 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLVector4::mV, MVT_LLVector4, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::packUUID ( const LLUUID value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 517 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLUUID::mData, MVT_LLUUID, LLDataPacker::mWriteEnabled, TRUE, and verifyLength().

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::unpackUUID ( LLUUID value,
const char *  name 
) [virtual]

Implements LLDataPacker.

Definition at line 531 of file lldatapacker.cpp.

References htonmemcpy(), mCurBufferp, LLUUID::mData, MVT_LLUUID, TRUE, and verifyLength().

Referenced by LLViewerObjectList::processObjectUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLDataPackerBinaryBuffer::getCurrentSize (  )  const [inline]

S32 LLDataPackerBinaryBuffer::getBufferSize (  )  const [inline]

void LLDataPackerBinaryBuffer::reset (  )  [inline, virtual]

Reimplemented from LLDataPacker.

Definition at line 175 of file lldatapacker.h.

References mBufferp, mCurBufferp, LLDataPacker::mWriteEnabled, and NULL.

Referenced by LLFloaterAnimPreview::postBuild(), and LLViewerObjectList::processObjectUpdate().

Here is the caller graph for this function:

void LLDataPackerBinaryBuffer::freeBuffer (  )  [inline]

Definition at line 176 of file lldatapacker.h.

References FALSE, mBufferp, mBufferSize, mCurBufferp, LLDataPacker::mWriteEnabled, and NULL.

Referenced by LLVOCacheEntry::assignCRC().

Here is the caller graph for this function:

void LLDataPackerBinaryBuffer::assignBuffer ( U8 bufferp,
S32  size 
) [inline]

Definition at line 177 of file lldatapacker.h.

References mBufferp, mBufferSize, mCurBufferp, LLDataPacker::mWriteEnabled, and TRUE.

Referenced by LLVOCacheEntry::assignCRC(), LLVOCacheEntry::LLVOCacheEntry(), and LLViewerObjectList::processObjectUpdate().

Here is the caller graph for this function:

const LLDataPackerBinaryBuffer & LLDataPackerBinaryBuffer::operator= ( const LLDataPackerBinaryBuffer a  ) 

Definition at line 541 of file lldatapacker.cpp.

References getBufferSize(), llendl, llerrs, and mBufferp.

Here is the call graph for this function:

BOOL LLDataPackerBinaryBuffer::hasNext (  )  const [inline, virtual]

Implements LLDataPacker.

Definition at line 186 of file lldatapacker.h.

References getBufferSize(), and getCurrentSize().

Here is the call graph for this function:

void LLDataPackerBinaryBuffer::dumpBufferToLog (  )  [virtual]

Reimplemented from LLDataPacker.

Definition at line 552 of file lldatapacker.cpp.

References i, llendl, llwarns, mBufferp, mBufferSize, and S32.

BOOL LLDataPackerBinaryBuffer::verifyLength ( const S32  data_size,
const char *  name 
) [inline, protected]


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:40 2008 for SecondLife by  doxygen 1.5.5