52 const uint8_t *
const src;
72EMBED_TABLE_LAYOUT(
EndianNs, wr, rd, rev);
uint64_t mmgr_rd_le(const EndianCfg *args)
Reads args->width bytes from args->src without reversing them.
mmgr_endian_width
Width of one endian read or write, counted in bytes.
static const EndianNs magna_extremitas
Dispatch table instance named magna_extremitas, the big endian order.
size_t mmgr_wr_le(const EndianCfg *args)
Writes args->width bytes of args->val to args->dst without reversing them.
static const EndianNs parva_extremitas
Dispatch table instance named parva_extremitas, the little endian order.
uint64_t mmgr_endian_rev(const EndianCfg *args)
Reverses the byte order of args->val at args->width bytes.
uint64_t mmgr_rd_be(const EndianCfg *args)
Reads args->width bytes from args->src, then reverses them.
size_t mmgr_wr_be(const EndianCfg *args)
Reverses args->val, then writes args->width bytes of it to args->dst.
The embedded_types headers every module builds on.
Arguments for the endian calls, where each call reads only the members it needs.
const mmgr_endian_width width
Type of an endian dispatch table.
uint64_t(*) rd(const EndianCfg *args)
size_t(*) wr(const EndianCfg *args)
uint64_t(*) rev(const EndianCfg *args)