|
template<typename T > |
bool | read (T &data) |
|
bool | read (uint8_t *data, size_t size) |
|
bool | read (String &data, size_t length) |
|
bool | read (Buffer &data, size_t length) |
|
uint8_t * | head () |
|
size_t | available () const |
|
bool | eof () const |
|
size_t | readOffset () const |
|
| Buffer (const String &str) |
|
| Buffer (const Buffer &other)=default |
|
| Buffer (Buffer &&other) noexcept=default |
|
| Buffer (const String &str) |
|
| Buffer (const Buffer &other)=default |
|
| Buffer (Buffer &&other) noexcept=default |
|
| ~Buffer () noexcept override=default |
|
Buffer & | operator= (Buffer &&other) DOESNT_THROW=default |
|
Buffer & | operator= (const Buffer &other)=default |
|
void | append (char ch) override |
|
void | append (const char *data, size_t sz=0) override |
|
void | append (const uint8_t *data, size_t sz) override |
|
template<class T > |
void | append (T val) |
|
void | append (const std::string &str) |
|
void | append (const String &str) |
|
void | append (const Buffer &buffer) |
|
uint8_t & | operator[] (size_t index) |
|
const uint8_t & | operator[] (size_t index) const |
|
bool | operator== (const Buffer &other) const |
|
bool | operator!= (const Buffer &other) const |
|
void | loadFromFile (const fs::path &fileName) |
|
void | saveToFile (const fs::path &fileName) const |
|
Buffer & | operator= (const String &str) |
|
Buffer & | operator= (const char *str) |
|
| operator String () const |
|
| BufferStorage () |
|
| BufferStorage (size_t sz) |
|
| BufferStorage (const BufferStorage &bufferStorage)=default |
|
| BufferStorage (BufferStorage &&bufferStorage) noexcept=default |
|
template<typename T > |
| BufferStorage (const T *data, size_t sz) |
|
| BufferStorage () |
|
| BufferStorage (size_t sz) |
|
| BufferStorage (const BufferStorage &bufferStorage)=default |
|
| BufferStorage (BufferStorage &&bufferStorage) noexcept=default |
|
virtual | ~BufferStorage ()=default |
|
BufferStorage & | operator= (const BufferStorage &bufferStorage)=default |
|
BufferStorage & | operator= (BufferStorage &&bufferStorage) noexcept=default |
|
template<typename T > |
| BufferStorage (const T *data, size_t sz) |
|
uint8_t * | data () |
|
const uint8_t * | data () const |
|
const char * | c_str () const |
|
bool | empty () const |
|
virtual void | checkSize (size_t sz) |
|
template<typename T > |
void | set (const T *data, size_t sz) |
|
void | set (const BufferStorage &data) |
|
void | set (const String &data) |
|
size_t | capacity () const |
|
size_t | length () const |
|
size_t | bytes () const |
|
void | bytes (size_t b) |
|
virtual void | append (char ch) |
|
virtual void | append (const char *data, size_t sz=0) |
|
virtual void | append (const uint8_t *data, size_t sz) |
|
void | reset (size_t sz=0) |
|
void | fill (char ch, size_t count) |
|
void | erase (size_t offset, size_t length) |
|
Generic read buffer.
Data is added to the buffer the usual way, using ctors and/or append operations. Any read operations copy data into external buffer, then advance internal read offset.