112EMBED_TABLE_LAYOUT(
SpatiumNs, from, cfrom, ok, cok, has_storage, reset, after, first, produced, read);
The embedded_types headers every module builds on.
mmgr_cspan mmgr_spat_produced(const SpatiumCfg *args)
Returns a read span over everything written into args->span.
mmgr_span mmgr_spat_after(const SpatiumCfg *args)
Returns the span beginning args->count bytes into args->span.
mmgr_cspan mmgr_spat_cfrom(const SpatiumCfg *args)
Builds a read span over args->cbuf, with pos at 0 and err clear.
embed_bool mmgr_spat_cok(const SpatiumCfg *args)
Returns whether args->cspan has storage and has recorded no error.
static const SpatiumNs spat
Dispatch table instance named spat, with each member set to its mmgr_spat_ function.
void mmgr_spat_reset(const SpatiumCfg *args)
Returns the span at args->at to its start and clears its overflow.
mmgr_span mmgr_spat_first(const SpatiumCfg *args)
Returns the span covering only the first args->count bytes of args->span.
embed_bool mmgr_spat_ok(const SpatiumCfg *args)
Returns whether args->span has storage and has not overflowed.
embed_bool mmgr_spat_has_storage(const SpatiumCfg *args)
Returns whether args->span covers any bytes at all.
mmgr_cspan mmgr_spat_read(const SpatiumCfg *args)
Returns a read span over the first args->count bytes written into args->span.
mmgr_span mmgr_spat_from(const SpatiumCfg *args)
Builds a fill span over args->buf, with pos at 0 and overflow clear.
Arguments for every spat call, where each call reads only the members it needs.
const uint8_t *const cbuf
Type of the spat dispatch table.
mmgr_cspan(*) read(const SpatiumCfg *args)
mmgr_span(*) from(const SpatiumCfg *args)
mmgr_span(*) first(const SpatiumCfg *args)
mmgr_cspan(*) cfrom(const SpatiumCfg *args)
embed_bool(*) has_storage(const SpatiumCfg *args)
embed_bool(*) ok(const SpatiumCfg *args)
mmgr_cspan(*) produced(const SpatiumCfg *args)
void(*) reset(const SpatiumCfg *args)
mmgr_span(*) after(const SpatiumCfg *args)
embed_bool(*) cok(const SpatiumCfg *args)
A buffer being read: its bytes, how far the reader has gone, and whether it ran out.
A buffer being filled: its bytes, how far the writer has gone, and whether it ran out.