void read(uint8_t *data, uint32_t size)
Read a block of data from this ByteBuffer into a buffer pointed by 'data'.
uint32_t free()
Return the number of additional bytes this buffer can hold.
void write(uint8_t *data, uint32_t size)
Write a block of data to this ByteBuffer.
bool empty()
Check if this byte buffer is empty.
uint8_t pop()
Remove a byte from this buffer.
bool full()
Check if this byte buffer is full.
ByteBuffer(uint32_t size=0)
Create a byte buffer of the given size.
void resize(uint32_t size)
Set the size of the buffer.
void push(uint8_t data)
Add a single byte to this buffer.
uint32_t size()
Return the number bytes in this byte buffer.
~ByteBuffer()
Delete this byte buffer.