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

Arguments for the entries that write a double. More...

#include <verba_scribo.h>

Data Fields

char *const out
const size_t cap
const size_t at
const double real
const uint8_t sig
const uint8_t decimals

Detailed Description

Arguments for the entries that write a double.

Note
g reads sig and fixed reads decimals. Neither reads the other's. The three predicates read real on its own and write nothing, and so out and cap may be left unset for them.
Warning
g and fixed need out writable for cap bytes. A byte is always reserved for the terminator finish stores.

Definition at line 147 of file verba_scribo.h.

Field Documentation

◆ out

char* const VerbaFractioCfg::out

Destination buffer [BORROWS]. The three predicates leave it unset.

Definition at line 149 of file verba_scribo.h.

◆ cap

const size_t VerbaFractioCfg::cap

Bytes available in out.

Definition at line 150 of file verba_scribo.h.

◆ at

const size_t VerbaFractioCfg::at

Offset to write at.

Definition at line 151 of file verba_scribo.h.

◆ real

const double VerbaFractioCfg::real

The value to write or classify.

Definition at line 152 of file verba_scribo.h.

◆ sig

const uint8_t VerbaFractioCfg::sig

Significant digits g keeps, clamped at MMGR_G_MAX_SIG.

Definition at line 153 of file verba_scribo.h.

◆ decimals

const uint8_t VerbaFractioCfg::decimals

Digits after the point fixed writes, clamped at MMGR_FIXED_MAX_DECIMALS.

Definition at line 154 of file verba_scribo.h.


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