|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
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). | |
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.
| 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().
| size_t jof_memstore_t::cap |
| 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().