Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Buffer Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ allocated

size_t Buffer::allocated

Total size of the allocated buffer.

◆ data

uint8_t* Buffer::data

Pointer to the allocated memory block.

◆ first_free

size_t Buffer::first_free

Offset to the first unused byte (end of valid data).

◆ start

size_t Buffer::start

Offset to the first valid byte.


The documentation for this struct was generated from the following file: