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

Type of the memor dispatch table. More...

#include <memoria_operor.h>

Data Fields

void(*) cpy (const MemoriaCfg *args)
void(*) move_down (const MemoriaCfg *args)
void(*) move_up (const MemoriaCfg *args)
embed_iword(*) cmp (const MemoriaCfg *args)
const void *(*) chr (const MemoriaCfg *args)
void(*) set (const MemoriaCfg *args)

Detailed Description

Type of the memor dispatch table.

Note
EMBED_TABLE_LAYOUT asserts the six members sit at consecutive EMBED_FUNCTION_POINTER_BYTES offsets, with nothing else.
cpy, move_down and move_up all copy, and differ in the overlap each one allows.

Definition at line 42 of file memoria_operor.h.

Field Documentation

◆ cpy

void(*) MemoriaOperorNs::cpy(const MemoriaCfg *args)

Copies upward, for regions that do not overlap.

Definition at line 44 of file memoria_operor.h.

◆ move_down

void(*) MemoriaOperorNs::move_down(const MemoriaCfg *args)

Copies upward, for a destination below the source.

Definition at line 45 of file memoria_operor.h.

◆ move_up

void(*) MemoriaOperorNs::move_up(const MemoriaCfg *args)

Copies downward, for a destination above the source.

Definition at line 46 of file memoria_operor.h.

◆ cmp

embed_iword(*) MemoriaOperorNs::cmp(const MemoriaCfg *args)

Orders two regions by their first difference.

Definition at line 47 of file memoria_operor.h.

◆ chr

const void *(*) MemoriaOperorNs::chr(const MemoriaCfg *args)

Finds the first byte equal to val.

Definition at line 48 of file memoria_operor.h.

◆ set

void(*) MemoriaOperorNs::set(const MemoriaCfg *args)

Fills a region with val.

Definition at line 49 of file memoria_operor.h.


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