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

Arguments for the entries that write an integer. More...

#include <verba_scribo.h>

Data Fields

char *const out
const size_t cap
const size_t at
const uint64_t val
const int64_t sval
const uint8_t base
const uint8_t min
const uint8_t columns

Detailed Description

Arguments for the entries that write an integer.

Note
i64 reads sval and every other entry reads val. uint is the only one that reads base, and u64_clip the only one that reads columns.
uint, u32w and hex read min. u32, u64 and i64 fix it at one in the backend instead.
Warning
out must be writable for cap bytes. A byte is always reserved for the terminator finish stores.

Definition at line 109 of file verba_scribo.h.

Field Documentation

◆ out

char* const VerbaNumerusCfg::out

Destination buffer [BORROWS].

Definition at line 111 of file verba_scribo.h.

◆ cap

const size_t VerbaNumerusCfg::cap

Bytes available in out.

Definition at line 112 of file verba_scribo.h.

◆ at

const size_t VerbaNumerusCfg::at

Offset to write at.

Definition at line 113 of file verba_scribo.h.

◆ val

const uint64_t VerbaNumerusCfg::val

Unsigned value the unsigned entries write.

Definition at line 114 of file verba_scribo.h.

◆ sval

const int64_t VerbaNumerusCfg::sval

Signed value i64 writes.

Definition at line 115 of file verba_scribo.h.

◆ base

const uint8_t VerbaNumerusCfg::base

Numeric base uint writes in: 8, 16, or anything else for ten.

Definition at line 116 of file verba_scribo.h.

◆ min

const uint8_t VerbaNumerusCfg::min

Fewest digits to write, padded on the left with zeros.

Definition at line 117 of file verba_scribo.h.

◆ columns

const uint8_t VerbaNumerusCfg::columns

Fewest columns u64_clip fills, padded on the left with spaces.

Definition at line 118 of file verba_scribo.h.


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