Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
#include <cs_StackBuffer.h>
Public Member Functions | |
StackBuffer (uint16_t capacity) | |
virtual | ~StackBuffer () |
uint16_t | getMaxByteSize (uint16_t capacity) |
uint16_t | getMaxByteSize () |
uint16_t | getMaxSize (uint16_t byteSize) |
bool | init () |
bool | deinit () |
bool | assign (buffer_ptr_t buffer, uint16_t bufferSize) |
bool | release () |
stack_buffer_t< T > * | getBuffer () |
void | clear () |
uint16_t | size () const |
uint16_t | capacity () const |
bool | empty () const |
bool | full () const |
bool | push (T value) |
T | pop () |
T | operator[] (uint16_t idx) const |
Private Attributes | |
stack_buffer_t< T > * | _buffer |
uint16_t | _capacity |
bool | _allocatedSelf |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |