Open Lighting Architecture
0.9.2
|
Wraps a block of memory and presents the InputBuffer interface. This does not free the memory when the object is destroyed.
Public Member Functions | |
MemoryBuffer (const uint8_t *data, unsigned int size) | |
unsigned int | Read (uint8_t *data, unsigned int length) |
unsigned int | Read (std::string *output, unsigned int length) |
|
inlinevirtual |
Copy the next length bytes to *data. Less than length bytes may be returned if the end of the buffer is reached.
Implements ola::io::InputBufferInterface.