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

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
void *const scratch
const size_t count
int(*const) order (const void *left, const void *right)

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, run and run_last read src, bytes and val. set reads dst, bytes and val.
sort reads dst, scratch, count, bytes and order. bytes is then the size of one element.

Definition at line 30 of file memoria_operor.h.

Field Documentation

◆ dst

void* const MemoriaCfg::dst

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

Definition at line 32 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 33 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 34 of file memoria_operor.h.

◆ bytes

const size_t MemoriaCfg::bytes

Bytes the call moves, examines or writes, or the bytes of one element of sort.

Definition at line 35 of file memoria_operor.h.

◆ val

const uint8_t MemoriaCfg::val

Byte chr looks for, the byte run and run_last count, or the byte set writes.

Definition at line 36 of file memoria_operor.h.

◆ scratch

void* const MemoriaCfg::scratch

Room for every element of sort, which its merges write [BORROWS].

Definition at line 37 of file memoria_operor.h.

◆ count

const size_t MemoriaCfg::count

Elements sort orders.

Definition at line 38 of file memoria_operor.h.

◆ order

int(*const) MemoriaCfg::order(const void *left, const void *right)

0 or less where left comes at or before right.

Definition at line 39 of file memoria_operor.h.


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