ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_fmt_host_spool_internal.h
Go to the documentation of this file.
1
10
11#pragma once
12
13#include <stdint.h>
14
15#include "ra8_attributes.h"
16#include "ra8_fmt_stream.h"
17
19typedef struct {
20 int fd;
21 uint64_t position;
22 bool sealed;
24
37RA8_PRIV [[nodiscard]] ra8_err_t priv_fmt_host_spool_open(const char* anchor_path,
39 ra8_fmt_spool_t* out);
40
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
void priv_fmt_host_spool_close(ra8_fmt_host_spool_t *state)
Close an anonymous scratch artifact.
ra8_err_t priv_fmt_host_spool_open(const char *anchor_path, ra8_fmt_host_spool_t *state, ra8_fmt_spool_t *out)
Create an anonymous scratch file beside an anchored input path.
Caller-workspace I/O contracts for portable format-tool engines.
Caller-owned state for one unlinked scratch file.
int fd
Owned anonymous descriptor, or -1.
bool sealed
Positioned reads are now allowed.
uint64_t position
Bytes appended before sealing.
Caller-owned scratch artifact with append, seal, and read seams.