#include <dyn0buf.h>
◆ block_t()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
◆ ~block_t()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
◆ begin() [1/2]
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
- Returns
- start of data - non const version
◆ begin() [2/2]
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
- Returns
- start of data - const version
◆ close()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
◆ end() [1/2]
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
- Returns
- end of used data - non const version
◆ end() [2/2]
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
- Returns
- end of used data - const version
◆ init()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
void dyn_buf_t< SIZE >::block_t::init |
( |
void |
| ) |
|
|
inlineprivate |
◆ push()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
template<typename Type >
Type dyn_buf_t< SIZE >::block_t::push |
( |
uint32_t |
size | ) |
|
|
inlineprivate |
- Returns
- pointer to start of reserved space
◆ start()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
Gets pointer to the start of data.
- Returns
- pointer to data
◆ used()
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
Gets the number of used bytes in a block.
- Returns
- number of bytes used
◆ dyn_buf_t
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
◆ m_buf_end
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
If opened then this is the buffer end offset, else 0.
◆ m_data
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
◆ m_magic_n
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
Magic number (DYN_BLOCK_MAGIC_N)
◆ m_node
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
block_node_t dyn_buf_t< SIZE >::block_t::m_node |
|
private |
◆ m_used
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
number of data bytes used in this block; DYN_BLOCK_FULL_FLAG is set when the block becomes full
◆ MAX_DATA_SIZE
template<size_t SIZE = DYN_ARRAY_DATA_SIZE>
constexpr auto dyn_buf_t< SIZE >::block_t::MAX_DATA_SIZE = SIZE |
|
staticconstexprprivate |
SIZE - sizeof(m_node) + sizeof(m_used)
The documentation for this class was generated from the following file: