ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
unarch_xz_pool.h
Go to the documentation of this file.
1
36#pragma once
37
38#include <stdint.h>
39
40#include "ra8_err.h"
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
54typedef enum : uint32_t {
57
84[[nodiscard]] ra8_err_t unarch_xz_pool_install(void* base, uint32_t len);
85
102void unarch_xz_pool_reset(void);
103
129[[nodiscard]] void* unarch_xz_pool_alloc(uint32_t size);
130
150[[nodiscard]] uint32_t unarch_xz_pool_used(void);
151
152#ifdef __cplusplus
153}
154#endif
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
void unarch_xz_pool_reset(void)
Release the installed arena (invalidates every pool allocation).
uint32_t unarch_xz_pool_used(void)
Bytes currently bump-allocated from the installed arena.
unarch_xz_pool_dims_t
Alignment and sizing constants for the XZ bump arena.
@ k_unarch_xz_pool_align
Bump-allocation alignment, bytes.
void * unarch_xz_pool_alloc(uint32_t size)
Bump-allocate size bytes from the installed arena.
ra8_err_t unarch_xz_pool_install(void *base, uint32_t len)
Install a caller-owned scratch buffer as the XZ allocation arena.