Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Attributes | List of all members
_wmem_strbuf_t Struct Reference

Internal structure representing a wmem-allocated string buffer. More...

#include <wmem_strbuf.h>

Public Attributes

wmem_allocator_tallocator
 
char * str
 
size_t len
 
size_t alloc_size
 

Detailed Description

Internal structure representing a wmem-allocated string buffer.

This structure holds a string buffer allocated via the wmem memory management system. It supports efficient string manipulation and resizing, including embedded NUL bytes.

Member Data Documentation

◆ alloc_size

size_t _wmem_strbuf_t::alloc_size

Total size of the allocated buffer pointed to by str, regardless of actual string content.

◆ allocator

wmem_allocator_t* _wmem_strbuf_t::allocator

Pointer to the wmem_allocator_t used to manage memory for this buffer.

◆ len

size_t _wmem_strbuf_t::len

Logical length of the string content, excluding the null terminator. May differ from strlen(str) if the string contains embedded NULs.

◆ str

char* _wmem_strbuf_t::str

Pointer to the raw character buffer containing the string. May include embedded NULs.


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