Torque::ByteBuffer
Engine/source/core/util/byteBuffer.h
Private Attributes
Public Functions
ByteBuffer(const ByteBuffer & theBuffer)
Copy constructor.
ByteBuffer(U32 bufferSize)
Create a ByteBuffer of the specified size.
ByteBuffer(U8 * dataPtr, U32 bufferSize)
Create a ByteBuffer from a chunk of memory.
appendBuffer(const ByteBuffer & theBuffer)
Appends the specified ByteBuffer to the end of this byte buffer.
appendBuffer(const U8 * dataBuffer, U32 bufferSize)
Appends the specified buffer to the end of the byte buffer.
getCopy()
Copy the data in the buffer.
operator=(const ByteBuffer & theBuffer)
Set the ByteBuffer to point to a new chunk of memory.
Detailed Description
Private Attributes
PrivateBBData * _data
Public Functions
ByteBuffer()
ByteBuffer(const ByteBuffer & theBuffer)
Copy constructor.
ByteBuffer(U32 bufferSize)
Create a ByteBuffer of the specified size.
ByteBuffer(U8 * dataPtr, U32 bufferSize)
Create a ByteBuffer from a chunk of memory.
~ByteBuffer()
appendBuffer(const ByteBuffer & theBuffer)
Appends the specified ByteBuffer to the end of this byte buffer.
appendBuffer(const U8 * dataBuffer, U32 bufferSize)
Appends the specified buffer to the end of the byte buffer.
clear()
Clear the buffer.
getBuffer()
getBuffer()
getBufferSize()
getCopy()
Copy the data in the buffer.
operator=(const ByteBuffer & theBuffer)
resize(U32 newBufferSize)
Resize the buffer.
setBuffer(U8 * dataPtr, U32 bufferSize, bool copyData)
Set the ByteBuffer to point to a new chunk of memory.