MMgr v1.0.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
VerbaLinea Struct Reference

A line written into out, at bytes so far, and handed to flush as it fills. More...

#include <verba_linea.h>

Data Fields

char * out
size_t capacity
size_t at
VerbaLineaFlush flush
void * context
size_t flushed

Detailed Description

A line written into out, at bytes so far, and handed to flush as it fills.

Note
A byte of out is reserved for the terminator, and every write stores it. A write that did not fit leaves at at capacity, with capacity minus one bytes written.
flushed counts the bytes the line has handed on.
Warning
out must be writable for capacity bytes.

Definition at line 52 of file verba_linea.h.

Field Documentation

◆ out

char* VerbaLinea::out

The line's buffer [BORROWS].

Definition at line 54 of file verba_linea.h.

◆ capacity

size_t VerbaLinea::capacity

Bytes in out.

Definition at line 55 of file verba_linea.h.

◆ at

size_t VerbaLinea::at

Bytes written, and capacity once a write did not fit.

Definition at line 56 of file verba_linea.h.

◆ flush

VerbaLineaFlush VerbaLinea::flush

Where the line hands what it holds, or NULL for a line that fills.

Definition at line 57 of file verba_linea.h.

◆ context

void* VerbaLinea::context

Handed to flush with every call [BORROWS].

Definition at line 58 of file verba_linea.h.

◆ flushed

size_t VerbaLinea::flushed

Bytes handed to flush so far.

Definition at line 59 of file verba_linea.h.


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