ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_vfs_compress.h
Go to the documentation of this file.
1
49
50#pragma once
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56#include <stdint.h>
57
58#include "ra8_compress.h"
59#include "ra8_err.h"
60
99[[nodiscard]] ra8_err_t ra8_vfs_compress_write(const char* path,
100 const uint8_t* src,
101 uint32_t src_len,
102 void* scratch,
103 uint32_t scratch_len,
104 uint8_t* blob_buf,
105 uint32_t blob_cap,
106 uint32_t* out_blob_len);
107
142[[nodiscard]] ra8_err_t ra8_vfs_compress_read(const char* path,
143 uint8_t* blob_buf,
144 uint32_t blob_cap,
145 uint8_t* out,
146 uint32_t out_cap,
147 uint32_t* out_len);
148
149#ifdef __cplusplus
150}
151#endif
App-domain DEFLATE compress / decompress (zero-heap, firmware-safe).
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
ra8_err_t ra8_vfs_compress_read(const char *path, uint8_t *blob_buf, uint32_t blob_cap, uint8_t *out, uint32_t out_cap, uint32_t *out_len)
Read a whole compressed file through the VFS and decompress it.
ra8_err_t ra8_vfs_compress_write(const char *path, const uint8_t *src, uint32_t src_len, void *scratch, uint32_t scratch_len, uint8_t *blob_buf, uint32_t blob_cap, uint32_t *out_blob_len)
Compress a payload and store it as a whole file through the VFS.