Torque3D Documentation / _generateds / Torque::ByteBuffer

Torque::ByteBuffer

Engine/source/core/util/byteBuffer.h

More...

Private Attributes

Public Functions

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.

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 the buffer.

Copy the data in the buffer.

resize(U32 newBufferSize)

Resize the buffer.

setBuffer(U8 * dataPtr, U32 bufferSize, bool copyData)

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.