zxsd 0.20.0
Embedded XML Schema validation for C
Loading...
Searching...
No Matches
Data Fields
zxsd_bind_arena_t Struct Reference

Caller-owned bump allocator used when reading a document. More...

#include <zxsd_bind.h>

Data Fields

unsigned char * data
 First byte of the arena storage.
 
size_t capacity
 Number of bytes in data.
 
size_t used
 Number of bytes already allocated.
 

Detailed Description

Caller-owned bump allocator used when reading a document.

Initialize it with zxsd_bind_arena_init. Pointers stored in a structure filled by zxsd_bind_read remain valid while the arena storage is alive and is not reset.

Definition at line 146 of file zxsd_bind.h.

Field Documentation

◆ capacity

size_t zxsd_bind_arena_t::capacity

Number of bytes in data.

Definition at line 148 of file zxsd_bind.h.

◆ data

unsigned char* zxsd_bind_arena_t::data

First byte of the arena storage.

Definition at line 147 of file zxsd_bind.h.

◆ used

size_t zxsd_bind_arena_t::used

Number of bytes already allocated.

Definition at line 149 of file zxsd_bind.h.


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