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

Arguments for the byteio calls, where each call reads only the members it needs. More...

#include <octetus_introitus_exitus.h>

Data Fields

mmgr_span *const write_span
mmgr_cspan *const read_span
const uint8_t *const src
uint64_t *const out
const uint8_t **const blob
size_t *const blob_bytes
const uint64_t value
const size_t bytes
const uint8_t byte

Detailed Description

Arguments for the byteio calls, where each call reads only the members it needs.

Note
put reads write_span and byte. put_be reads write_span, value and bytes. raw reads write_span, src and bytes. take_be reads read_span, bytes and out. rd_str reads read_span, blob and blob_bytes. mpint_fixed reads write_span, src and bytes, where bytes is the integer's length and not a big endian width.

Definition at line 46 of file octetus_introitus_exitus.h.

Field Documentation

◆ write_span

mmgr_span* const OctetusCfg::write_span

Span put, put_be and raw append into, or mpint_fixed fills [BORROWS].

Definition at line 48 of file octetus_introitus_exitus.h.

◆ read_span

mmgr_cspan* const OctetusCfg::read_span

Span take_be and rd_str read from [BORROWS].

Definition at line 49 of file octetus_introitus_exitus.h.

◆ src

const uint8_t* const OctetusCfg::src

Bytes raw appends, or the integer mpint_fixed reads [BORROWS].

Definition at line 50 of file octetus_introitus_exitus.h.

◆ out

uint64_t* const OctetusCfg::out

Where take_be stores the value it read [BORROWS].

Definition at line 51 of file octetus_introitus_exitus.h.

◆ blob

const uint8_t** const OctetusCfg::blob

Where rd_str points at the payload it found [BORROWS].

Definition at line 52 of file octetus_introitus_exitus.h.

◆ blob_bytes

size_t* const OctetusCfg::blob_bytes

Where rd_str stores that payload's length [BORROWS].

Definition at line 53 of file octetus_introitus_exitus.h.

◆ value

const uint64_t OctetusCfg::value

Value put_be writes, taken from its low bytes.

Definition at line 54 of file octetus_introitus_exitus.h.

◆ bytes

const size_t OctetusCfg::bytes

Bytes the call moves, 1 through 8 for the big endian entries.

Definition at line 55 of file octetus_introitus_exitus.h.

◆ byte

const uint8_t OctetusCfg::byte

The single byte put appends.

Definition at line 56 of file octetus_introitus_exitus.h.


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