Open Lighting Architecture: ola::io::MemoryBuffer Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::io::MemoryBuffer Class Reference

## Detailed Description

Wraps a block of memory and presents the InputBuffer interface. This does not free the memory when the object is destroyed.

Inheritance diagram for ola::io::MemoryBuffer:

## 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)

## Member Function Documentation

## ◆ Read() [1/2]

unsigned int ola::io::MemoryBuffer::Read | ( | std::string * | output,
|  | unsigned int | length )
| inlinevirtual

Implements ola::io::InputBufferInterface.

## ◆ Read() [2/2]

unsigned int ola::io::MemoryBuffer::Read | ( | uint8_t * | data,
|  | 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.

Returns
  the number of bytes read

Implements ola::io::InputBufferInterface.

The documentation for this class was generated from the following file:

- include/ola/io/MemoryBuffer.h