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

Arguments for the entries that write text into a buffer. More...

#include <verba_scribo.h>

Data Fields

char *const out
const size_t cap
const size_t at
const char *const text
const size_t text_len

Detailed Description

Arguments for the entries that write text into a buffer.

Note
put_n writes text_len bytes. put measures the text when text_len is 0 and takes it as given otherwise. put_clip, xml and json read text and leave text_len alone.
Warning
out must be writable for cap bytes. A byte is always reserved for the terminator finish stores.

Definition at line 49 of file verba_scribo.h.

Field Documentation

◆ out

char* const VerbaTextusCfg::out

Destination buffer [BORROWS].

Definition at line 51 of file verba_scribo.h.

◆ cap

const size_t VerbaTextusCfg::cap

Bytes available in out.

Definition at line 52 of file verba_scribo.h.

◆ at

const size_t VerbaTextusCfg::at

Offset to write at.

Definition at line 53 of file verba_scribo.h.

◆ text

const char* const VerbaTextusCfg::text

Text to write [BORROWS].

Definition at line 54 of file verba_scribo.h.

◆ text_len

const size_t VerbaTextusCfg::text_len

Bytes of text put_n writes, and the length put takes when non-zero.

Definition at line 55 of file verba_scribo.h.


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