MMgr v2.3.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
mmgr_ring Struct Reference

Storage a caller declares for one ring, whose contents belong to the implementation. More...

#include <memoria_anularis.h>

Data Fields

uint8_t opaque [MMGR_RING_WORDS *sizeof(size_t)]

Detailed Description

Storage a caller declares for one ring, whose contents belong to the implementation.

Note
EMBED_ALIGN aligns opaque to size_t.
From mmgr_anular_init onward these bytes hold the buffer that call received, which must outlive the ring [BORROWS].
Warning
The bytes carry no layout a consumer can reach. The definition of RingState is in memoria_anularis.c and nowhere else, and so the mmgr_anular_ entries are the only way into them.

Definition at line 124 of file memoria_anularis.h.

Field Documentation

◆ opaque

uint8_t mmgr_ring::opaque[MMGR_RING_WORDS *sizeof(size_t)]

Private ring state.

Definition at line 126 of file memoria_anularis.h.


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