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

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)
embed_bool(*) sort (const MemoriaCfg *args)
size_t(*) run (const MemoriaCfg *args)
size_t(*) run_last (const MemoriaCfg *args)

Detailed Description

Type of the memor dispatch table.

Note
EMBED_TABLE_LAYOUT asserts the nine 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 49 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 51 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 52 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 53 of file memoria_operor.h.

◆ cmp

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

Orders two regions by their first difference.

Definition at line 54 of file memoria_operor.h.

◆ chr

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

Finds the first byte equal to val.

Definition at line 55 of file memoria_operor.h.

◆ set

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

Fills a region with val.

Definition at line 56 of file memoria_operor.h.

◆ sort

embed_bool(*) MemoriaOperorNs::sort(const MemoriaCfg *args)

Puts elements in the order of a compare.

Definition at line 57 of file memoria_operor.h.

◆ run

size_t(*) MemoriaOperorNs::run(const MemoriaCfg *args)

Counts the bytes at the start equal to val.

Definition at line 58 of file memoria_operor.h.

◆ run_last

size_t(*) MemoriaOperorNs::run_last(const MemoriaCfg *args)

Counts the bytes at the end equal to val.

Definition at line 59 of file memoria_operor.h.


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