50 ra8_err_t (*
write)(
void* ctx,
const uint8_t* buf, uint32_t len, uint32_t* out_written);
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_io targetable byte-stream facade – one writer, many destinations.
struct ra8_io_stream_iface ra8_io_stream_iface_t
ra8_err_t ra8_io_stream_bind(ra8_io_stream_t *stream, const ra8_io_stream_iface_t *iface, void *context)
Bind a backend vtable and caller-owned state into a stream handle.
Opaque to stream users; backend implementers use the public backend contract in ra8_io_stream_backend...
ra8_err_t(* flush)(void *ctx)
Commit any buffering.
Caller-allocated byte-stream handle binding a sink to its context.