ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
jof_memstore_t Struct Reference

Append-only memory store: the simplest atlas backing (RAM/SDRAM). More...

#include <jof.h>

Data Fields

uint8_t * buf
 Caller-owned backing bytes.
size_t cap
 Capacity of buf.
size_t len
 Bytes appended so far (see sink).

Detailed Description

Append-only memory store: the simplest atlas backing (RAM/SDRAM).

Serves both halves of the producer/reader contract: its sink appends produced bytes at len, its pread serves them back. Zero-initialise, then set buf/cap.

Invariant
len <= cap at all times.
See also
jof_memstore_sink()
jof_memstore_pread()
Since
0.1.0

Definition at line 256 of file jof.h.

Field Documentation

◆ buf

uint8_t* jof_memstore_t::buf

Caller-owned backing bytes.

Definition at line 257 of file jof.h.

Referenced by jof_memstore_pread(), and jof_memstore_sink().

◆ cap

size_t jof_memstore_t::cap

Capacity of buf.

Definition at line 258 of file jof.h.

Referenced by jof_memstore_sink().

◆ len

size_t jof_memstore_t::len

Bytes appended so far (see sink).

Definition at line 259 of file jof.h.

Referenced by jof_memstore_pread(), and jof_memstore_sink().


The documentation for this struct was generated from the following file:
  • apps/shared_libs/jof/inc/jof.h