MMgr v2.3.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 passed 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 passed to flush as it fills.

Note
One byte of out stays 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 passed on.
Warning
out must be writable for capacity bytes.

Definition at line 55 of file verba_linea.h.

Field Documentation

◆ out

char* VerbaLinea::out

The line's buffer [BORROWS].

Definition at line 57 of file verba_linea.h.

◆ capacity

size_t VerbaLinea::capacity

Bytes in out.

Definition at line 58 of file verba_linea.h.

◆ at

size_t VerbaLinea::at

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

Definition at line 59 of file verba_linea.h.

◆ flush

VerbaLineaFlush VerbaLinea::flush

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

Definition at line 60 of file verba_linea.h.

◆ context

void* VerbaLinea::context

Passed to flush with every call [BORROWS].

Definition at line 61 of file verba_linea.h.

◆ flushed

size_t VerbaLinea::flushed

Bytes passed to flush so far.

Definition at line 62 of file verba_linea.h.


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