34typedef enum : uint64_t {
185 uint32_t buffer_bytes,
Architecture-neutral filesystem namespace, stream, and transaction ports.
uint64_t mdl_hash_bytes(const void *data, size_t len)
FNV-1a 64 hash of a byte range.
ra8_err_t mdl_hash_file(mdl_storage_t *storage, const char *path, uint64_t *out)
FNV-1a 64 hash of a file's full contents.
mdl_fnv_const_t
FNV-1a 64-bit constants (the canonical parameters).
@ k_mdl_fnv_prime
FNV-1a 64 prime.
@ k_mdl_hash_max_file_bytes
Exact file hash bound.
@ k_mdl_fnv_offset
FNV-1a 64 offset basis.
ra8_err_t mdl_hash_stream(fw_fs_file_t *file, uint64_t file_size, uint8_t *buffer, uint32_t buffer_bytes, uint64_t *out)
Hash exactly one snapshotted extent from an already-open stream.
uint64_t mdl_hash_bytes_seed(const void *data, size_t len, uint64_t seed)
Continue an FNV-1a 64 fold over a byte range from a running state.
uint64_t mdl_hash_str(const char *s)
FNV-1a 64 hash of a NUL-terminated string (excluding the NUL).
Injected portable storage resources for downloader domain code.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Caller-owned open file; fields are private to the facade.
One non-reentrant downloader filesystem dependency bundle.