Class used to interface with a DataBuffer and append data to it
BufferWriter( |
| ) |
Constructor to create a BufferWriter object
The buffer to write to, at the specific position to start writing data
The size available to write
A pointer to the current position to start writing in the buffer
Gets the buffer to write to
The buffer to write to, as a byte reference
Gets the size of the buffer available to write
The size of the buffer available to write
void commit( |
| ) |
Commits a number of bytes that were added to the buffer by moving the current offset.
This function must be called after bytes are added to the buffer, or else they will be ignored as if they were never added.
numBytesAdded std::size_t | The number of bytes added to the buffer |