116EMBED_TABLE_LAYOUT(
SpatiumNs, from, cfrom, ok, cok, has_storage, reset, after, first, produced, read);
EMBED_HOST_DEVICE embed_bool mmgr_spat_has_storage(const SpatiumCfg *args)
Returns whether args->span covers any bytes at all.
EMBED_HOST_DEVICE mmgr_span mmgr_spat_after(const SpatiumCfg *args)
Returns the span that begins args->count bytes into args->span.
EMBED_HOST_DEVICE embed_bool mmgr_spat_ok(const SpatiumCfg *args)
Returns whether args->span has storage and has not overflowed.
static const SpatiumNs spat
Dispatch table instance named spat, with each member set to its mmgr_spat_ function.
EMBED_HOST_DEVICE embed_bool mmgr_spat_cok(const SpatiumCfg *args)
Returns whether args->cspan has storage and recorded no error.
EMBED_HOST_DEVICE mmgr_cspan mmgr_spat_cfrom(const SpatiumCfg *args)
Builds a read span over args->cbuf, with pos at 0 and err clear.
EMBED_HOST_DEVICE void mmgr_spat_reset(const SpatiumCfg *args)
Returns the span at args->at to its start and clears its overflow.
EMBED_HOST_DEVICE mmgr_cspan mmgr_spat_read(const SpatiumCfg *args)
Returns a read span over the first args->count bytes written into args->span.
EMBED_HOST_DEVICE mmgr_cspan mmgr_spat_produced(const SpatiumCfg *args)
Returns a read span over everything written into args->span.
EMBED_HOST_DEVICE mmgr_span mmgr_spat_from(const SpatiumCfg *args)
Builds a fill span over args->buf, with pos at 0 and overflow clear.
EMBED_HOST_DEVICE mmgr_span mmgr_spat_first(const SpatiumCfg *args)
Returns the span that covers only the first args->count bytes of args->span.
The embedded_types headers every module builds on.
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 under read: its bytes, how far the reader went, and whether it ran out.
A buffer under fill: its bytes, how far the writer went, and whether it ran out.