Represents a buffer directly stored in memory.
More...
#include <data_buffer.hpp>
Represents a buffer directly stored in memory.
Definition at line 32 of file data_buffer.hpp.
◆ DataBufferBackingStore() [1/3]
fastuidraw::DataBufferBackingStore::DataBufferBackingStore |
( |
c_string |
filename | ) |
|
Ctor. Copies a file into memory.
- Parameters
-
filename | name of file to open |
◆ DataBufferBackingStore() [2/3]
fastuidraw::DataBufferBackingStore::DataBufferBackingStore |
( |
unsigned int |
num_bytes, |
|
|
uint8_t |
init = uint8_t(0) |
|
) |
| |
|
explicit |
Ctor. Allocate memory and fill the buffer with a fixed value.
- Parameters
-
num_bytes | number of bytes to give the backing store |
init | initial value to give each byte |
◆ DataBufferBackingStore() [3/3]
fastuidraw::DataBufferBackingStore::DataBufferBackingStore |
( |
c_array< const uint8_t > |
init_data | ) |
|
|
explicit |
Ctor. Allocates the memory and initializes it with data.
◆ data()
c_array<uint8_t> fastuidraw::DataBufferBackingStore::data |
( |
void |
| ) |
|
Return a pointer to the backing store of the memory.
The documentation for this class was generated from the following file: