|
| DataBuffer () |
| Create a data buffer with the default capacity, resize factor, and endian-ness. More...
|
|
| DataBuffer (Size newCapacity) |
| Create a data buffer the specified capacity, default resize factor and native endian-ness. More...
|
|
| DataBuffer (Size newCapacity, Float newResizeFactor) |
| Create a data buffer the specified capacity and resize factor and native endian-ness. More...
|
|
| DataBuffer (Size newCapacity, Float newResizeFactor, Endianness newEndianness) |
| Create a data buffer the specified capacity, resize factor and endian-ness. More...
|
|
| DataBuffer (const DataBuffer &other) |
| Create a copy of the specified data buffer. More...
|
|
| ~DataBuffer () |
| Destroy the data buffer and all data contained within. More...
|
|
DataBuffer & | operator= (const DataBuffer &other) |
| Assign the contents of another DataBuffer to this buffer, replacing the original contents. More...
|
|
DataBuffer & | append (UByte byte) |
| Append an unsigned byte to this data buffer. More...
|
|
DataBuffer & | append (const UByte *bytes, Size number) |
| Append the specified number of elements from an array of unsigned bytes. More...
|
|
DataBuffer & | append (const util::Array< UByte > &array) |
| Append an array of unsigned bytes to this data buffer. More...
|
|
DataBuffer & | append (const DataBuffer &dataBuffer) |
| Append all data in the specified data buffer to this data buffer. More...
|
|
DataBuffer & | append (Int8 value) |
| Append a signed 8-bit integer to this data buffer. More...
|
|
DataBuffer & | append (Int16 value) |
| Append a signed 16-bit integer to this data buffer. More...
|
|
DataBuffer & | append (UInt16 value) |
| Append an unsigned 16-bit integer to this data buffer. More...
|
|
DataBuffer & | append (Int32 value) |
| Append a signed 32-bit integer to this data buffer. More...
|
|
DataBuffer & | append (UInt32 value) |
| Append an unsigned 32-bit integer to this data buffer. More...
|
|
DataBuffer & | append (Int64 value) |
| Append a signed 64-bit integer to this data buffer. More...
|
|
DataBuffer & | append (UInt64 value) |
| Append an unsigned 64-bit integer to this data buffer. More...
|
|
DataBuffer & | append (Float32 value) |
| Append a 32-bit floating point number to this data buffer. More...
|
|
DataBuffer & | append (Float64 value) |
| Append a 64-bit floating point number to this data buffer. More...
|
|
template<typename T > |
DataBuffer & | append (const T *source, Size number) |
| Append a certain number of elements from an array of a primitive type. More...
|
|
template<typename T > |
DataBuffer & | append (const util::Array< T > &array) |
| Append all elements from an array of a primitive type to this data buffer. More...
|
|
template<typename T > |
DataBuffer & | append (const util::Array< T > &array, Size number) |
| Append a certain number of elements from an array of a primitive type. More...
|
|
template<typename T > |
DataBuffer & | operator<< (const T &value) |
| Append to the data buffer. More...
|
|
UByte * | reserve (Size numBytes) |
| Reserve the specified number of bytes at the end of the buffer where data should be written. More...
|
|
void | clear () |
| Clear all previously added elements from the data buffer. More...
|
|
Data | toData () const |
| Return a Data object containing the contents of this DataBuffer. More...
|
|
| operator const UByte * () const |
| Get a pointer to the beginning of the DataBuffer's internal array. More...
|
|
const UByte * | getPointer () const |
| Get a pointer pointing to the buffer's internal array. More...
|
|
Size | getSize () const |
| Get the number of bytes of data contained in the buffer. More...
|
|
Size | getCapacity () const |
| Return the number of elements the buffer can hold without resizing. More...
|
|
Bool | setCapacity (Size newCapacity) |
| Set the number of elements the buffer can hold. More...
|
|
Float | getResizeFactor () const |
| Get the resize factor for this string buffer. More...
|
|
void | setResizeFactor (Float newResizeFactor) |
| Set the resize factor for this string buffer, clamped to [1.1, 10.0]. More...
|
|
Endianness | getEndianness () const |
| Get the current endianness of the data being written to the buffer. More...
|
|
void | setEndianness (Endianness newEndianness) |
| Set the buffer to serialize data in big endian format. More...
|
|
A buffer class used to accumulate an opaque array of unsigned bytes.