write
Buffer::write
Writes content into a Buffer.
Declaration
void write(const std::byte* dataToWrite, size_t size);
Parameters
Name |
Type |
Description |
---|---|---|
data |
const std::byte* |
The memory address of the data to write in the Buffer. |
size |
size_t |
The size of the |
Returns
None.
Notes
This function will resize the Buffer if \((cursor + size) > getSize()\).
The cursor is then advanced by the size of the written data, but its position can be set using setCursorPosition.