MMgr v1.0.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 <confinium_exclusivum_infinitas.h>

Public Member Functions

 MMGR_ALIGN (sizeof(size_t)) uint8_t opaque[MMGR_RING_WORDS *sizeof(size_t)]

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
MMGR_ALIGN aligns opaque to size_t.
Warning
The bytes carry no documented layout; the infin calls are the only accessors.
Note
EMBED_ALIGN aligns opaque to size_t.
From mmgr_anular_init onward these bytes hold the buffer that call was given, which must outlive the ring [BORROWS].
Warning
The bytes carry no layout a consumer can reach. RingState is defined in memoria_anularis.c and nowhere else, and so the mmgr_anular_ entries are the only way into them.

Definition at line 92 of file confinium_exclusivum_infinitas.h.

Member Function Documentation

◆ MMGR_ALIGN()

mmgr_ring::MMGR_ALIGN ( sizeof(size_t) )

Private ring state.

References MMGR_RING_WORDS, and opaque.

Field Documentation

◆ opaque

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

Private ring state.

Definition at line 123 of file memoria_anularis.h.

Referenced by MMGR_ALIGN().


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