55 uint64_t expected_size,
87 uint64_t expected_size,
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
#define RA8_TEST_HELPER
Mark a symbol as externally-linked but only callable from tests.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_err_t priv_rabook_import_crc_stream(rabook_import_read_fn read_fn, void *read_ctx, uint64_t expected_size, uint8_t *buf, uint32_t cap, uint32_t max_reads, uint32_t *out_size, uint32_t *out_crc)
Compute one exact bounded source CRC through an injected reader.
ra8_err_t(* rabook_import_read_fn)(void *ctx, uint8_t *buf, uint32_t requested, uint32_t *out_read)
Exact sequential-reader seam used by the source-key CRC pass.
ra8_err_t rabook_import_crc_stream_test(rabook_import_read_fn read_fn, void *read_ctx, uint64_t expected_size, uint8_t *buf, uint32_t cap, uint32_t max_reads, uint32_t *out_size, uint32_t *out_crc)
Exercise the bounded source-key CRC contract from focused tests.