Phoenard
Public Member Functions | List of all members
BufferedReadStream Class Reference

Buffered stream implementation for reading another stream with a buffer. More...

#include <BufferedReadStream.h>

Inheritance diagram for BufferedReadStream:

Public Member Functions

 BufferedReadStream (Stream *baseStream, int BufferSize)
 Constructs a new buffered read stream reading from the baseStream.
 
virtual int read ()
 
virtual int peek ()
 
virtual int available ()
 
virtual void flush ()
 
size_t write (uint8_t val)
 

Detailed Description

Buffered stream implementation for reading another stream with a buffer.

Reads in multiple bytes at once into the buffer, allowing faster reading if the original stream byte-by-byte reading function is too slow.


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