ESP8266
|
Public Member Functions | |
cbuf (size_t size) | |
~cbuf () | |
size_t | getSize () const |
size_t | room () const |
bool | empty () const |
int | peek () |
int | read () |
size_t | read (char *dst, size_t size) |
size_t | write (char c) |
size_t | write (const char *src, size_t size) |
void | flush () |
Private Member Functions | |
char * | wrap_if_bufend (char *ptr) |
Private Attributes | |
const size_t | _size |
char * | _buf |
const char *const | _bufend |
char * | _begin |
char * | _end |
cbuf::cbuf | ( | size_t | size | ) |
cbuf::~cbuf | ( | ) |
bool cbuf::empty | ( | ) | const |
void cbuf::flush | ( | void | ) |
size_t cbuf::getSize | ( | void | ) | const |
int cbuf::peek | ( | void | ) |
int cbuf::read | ( | void | ) |
size_t cbuf::read | ( | char * | dst, |
size_t | size | ||
) |
size_t cbuf::room | ( | ) | const |
|
private |
size_t cbuf::write | ( | char | c | ) |
size_t cbuf::write | ( | const char * | src, |
size_t | size | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |