| 
    sprint 1-alpha 
   | 
 
#include <bufferize.h>
Public Member Functions | |
| template<class P > | |
| read_buffer (const P &p, int capacity) | |
| costructor with inner IO object and buffer capacity  | |
| read_buffer (int capacity) | |
| costructor with only buffer capacity  | |
| bool | valid () const | 
| test if buffer is initialized and stream valid  | |
| int | remain () const | 
| debug function: return the number of bytes in queue  | |
| int | readsome (unsigned char *dst, int len) | 
| int | read (unsigned char *dst, int len) | 
| Read buffered data.  | |
| int | skip (int n) | 
| int | peek () | 
| Read a single byte but not remove from buffer.  | |
| int | get () | 
| Read a single byte.  | |
class to bufferize reading (this class add buffer capabilities to IO class) T should have a method
T::read(unsigned char *dst, int size);
Example:
sprint::read_buffer<sprint::serial> m_serial_in;
| int sprint::read_buffer< T >::readsome | ( | unsigned char * | dst, | 
| int | len | ||
| ) | 
non blocking read
 1.7.4