ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
jof_prefix_pull_t Struct Reference

Pull adapter that replays the sniffed head bytes, then delegates. More...

#include <jof_internal.h>

Data Fields

const uint8_t * head
 Sniffed bytes to replay.
size_t head_len
 Sniffed byte count.
size_t pos
 Replay cursor.
jof_pull_fn inner
 Real source.
void * inner_ctx
 Context for the source.

Detailed Description

Pull adapter that replays the sniffed head bytes, then delegates.

The producer must peek the source magic before choosing a decoder, but every decoder expects the stream from byte 0; this adapter serves the peeked bytes first, then transparently delegates to the inner source. Shared so the WebP arm can pull its whole compressed source through the same replay as the streaming decoders.

Invariant
pos <= head_len at all times.
Since
0.1.0

Definition at line 192 of file jof_internal.h.

Field Documentation

◆ head

const uint8_t* jof_prefix_pull_t::head

Sniffed bytes to replay.

Definition at line 193 of file jof_internal.h.

Referenced by priv_jof_prefix_pull().

◆ head_len

size_t jof_prefix_pull_t::head_len

Sniffed byte count.

Definition at line 194 of file jof_internal.h.

Referenced by priv_jof_prefix_pull().

◆ inner

jof_pull_fn jof_prefix_pull_t::inner

Real source.

Definition at line 196 of file jof_internal.h.

Referenced by priv_jof_prefix_pull().

◆ inner_ctx

void* jof_prefix_pull_t::inner_ctx

Context for the source.

Definition at line 197 of file jof_internal.h.

Referenced by priv_jof_prefix_pull().

◆ pos

size_t jof_prefix_pull_t::pos

Replay cursor.

Definition at line 195 of file jof_internal.h.

Referenced by priv_jof_prefix_pull().


The documentation for this struct was generated from the following file: