Core mmbuf data structure.
- Note
- The contents of this data structure should never need to be accessed directly. Rather the various functions provided as part of this API should be used.
+----------------------------------------------------------+
| RESERVED | Data | RESERVED |
+----------------------------------------------------------+
^ ^ ^ ^
| | | |
| |
|<-----------------------
buf_len-------------------------->|
uint32_t start_offset
Offset where actual data starts in the buffer.
uint32_t buf_len
Length of the buffer.
uint8_t * buf
The buffer where data is stored.
uint32_t data_len
Length of actual data in the buffer.
Definition at line 52 of file mmbuf.h.