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

Arguments for the memor calls. More...

#include <memoria_operor.h>

Data Fields

void *const dst
const void *const src
const void *const other
const size_t bytes
const uint8_t val

Detailed Description

Arguments for the memor calls.

Note
cpy and the two moves read dst, src and bytes. cmp reads src, other and bytes.
chr reads src, bytes and val. set reads dst, bytes and val.

Definition at line 26 of file memoria_operor.h.

Field Documentation

◆ dst

void* const MemoriaCfg::dst

Destination for cpy, the moves and set [BORROWS].

Definition at line 28 of file memoria_operor.h.

Referenced by mmgr_shim_cpy(), mmgr_shim_move(), and mmgr_shim_set().

◆ src

const void* const MemoriaCfg::src

Source for cpy and the moves, region for cmp and chr [BORROWS].

Definition at line 29 of file memoria_operor.h.

Referenced by mmgr_shim_chr(), and mmgr_shim_cmp().

◆ other

const void* const MemoriaCfg::other

Second region for cmp [BORROWS].

Definition at line 30 of file memoria_operor.h.

◆ bytes

const size_t MemoriaCfg::bytes

Bytes the call moves, examines or writes.

Definition at line 31 of file memoria_operor.h.

◆ val

const uint8_t MemoriaCfg::val

Byte chr looks for, or the byte set writes.

Definition at line 32 of file memoria_operor.h.


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