|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
A dynamic byte buffer with adjustable start and end positions. More...
#include <buffer.h>
Public Attributes | |
| uint8_t * | data |
| size_t | allocated |
| size_t | start |
| size_t | first_free |
A dynamic byte buffer with adjustable start and end positions.
This structure supports efficient appending and trimming of data, making it suitable for streaming or incremental parsing scenarios.
| size_t Buffer::allocated |
Total size of the allocated buffer.
| uint8_t* Buffer::data |
Pointer to the allocated memory block.
| size_t Buffer::first_free |
Offset to the first unused byte (end of valid data).
| size_t Buffer::start |
Offset to the first valid byte.