Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::io::InputBufferInterface Class Referenceabstract

Detailed Description

InputBufferInterface.

Inheritance diagram for ola::io::InputBufferInterface:
Inheritance graph
[legend]

Public Member Functions

virtual unsigned int Read (uint8_t *data, unsigned int length)=0
 
virtual unsigned int Read (std::string *output, unsigned int length)=0
 

Member Function Documentation

◆ Read()

virtual unsigned int ola::io::InputBufferInterface::Read ( uint8_t *  data,
unsigned int  length 
)
pure virtual

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

Implemented in ola::io::IOStack, ola::io::IOQueue, and ola::io::MemoryBuffer.


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