ZVBI Library 0.2.46

Data Fields

char * data
size_t offset
size_t capacity

Detailed Description

Output buffer. Export modules can write into this buffer directly after ensuring sufficient capacity, and/or call the vbi_export_putc() etc functions. Keep in mind these functions may call realloc(), changing the data pointer, and/or vbi_export_flush(), changing the offset.

Field Documentation

◆ data

Pointer to the start of the buffer in memory. NULL if capacity is zero.

◆ offset

The number of bytes written into the buffer so far. Must be <= capacity.

◆ capacity

size_t vbi_export::[struct].buffer capacity

Number of bytes we can store in the buffer, may be zero.

Call _vbi_export_grow_buffer_space() to increase the capacity. Keep in mind this may change the data pointer.