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

Arguments for every spat call, where each call reads only the members it needs. More...

#include <spatium.h>

Data Fields

const mmgr_span span
const mmgr_cspan cspan
mmgr_span *const at
uint8_t *const buf
const uint8_t *const cbuf
const size_t cap
const size_t count

Detailed Description

Arguments for every spat call, where each call reads only the members it needs.

Note
Members left unset are zero, and the calls that ignore them never read them.
span and cspan hold a span instead of pointing at one. A walk reads the caller's span and cannot change it. reset is the single one entry that must change one, and it takes at.
cap carries the extent for both constructors: bytes at buf for from, bytes at cbuf for cfrom.
count carries the byte count for after, first and read.

Definition at line 79 of file spatium.h.

Field Documentation

◆ span

const mmgr_span SpatiumCfg::span

Fill span the walks read.

Definition at line 81 of file spatium.h.

◆ cspan

const mmgr_cspan SpatiumCfg::cspan

Read span cok tests.

Definition at line 82 of file spatium.h.

◆ at

mmgr_span* const SpatiumCfg::at

Fill span reset rewinds [BORROWS].

Definition at line 83 of file spatium.h.

◆ buf

uint8_t* const SpatiumCfg::buf

Buffer from builds over [BORROWS].

Definition at line 84 of file spatium.h.

◆ cbuf

const uint8_t* const SpatiumCfg::cbuf

Buffer cfrom builds over [BORROWS].

Definition at line 85 of file spatium.h.

◆ cap

const size_t SpatiumCfg::cap

Bytes at buf, or at cbuf.

Definition at line 86 of file spatium.h.

◆ count

const size_t SpatiumCfg::count

Byte count after, first and read take.

Definition at line 87 of file spatium.h.


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