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

One page's dedup/verify record in the series-wide pool. More...

#include <mdl_state.h>

Data Fields

uint64_t url_hash
 FNV-1a 64 of the source URL.
uint64_t content_hash
 FNV-1a 64 of the fetched bytes.
char rel_path [k_mdl_relpath_max]
 Path under the series directory.
char etag [k_mdl_etag_max]
 Cached ETag for conditional GET.
char last_modified [k_mdl_last_mod_max]
 Cached Last-Modified response value.
int64_t fetched_at
 Most recent HTTP result time (epoch s).
uint16_t response_status
 Most recent HTTP status; zero if legacy.

Detailed Description

One page's dedup/verify record in the series-wide pool.

url_hash keys a source URL so a re-fetch of the same image (a rerun, or an image shared between chapters) is found without the network; content_hash is the byte identity used to verify a page already on disk and to prove a reused copy is truly identical.

Invariant
rel_path is a sanitised path relative to the series directory.
See also
mdl_state_find_page
Since
0.1.0

Definition at line 151 of file mdl_state.h.

Field Documentation

◆ content_hash

uint64_t mdl_page_rec_t::content_hash

FNV-1a 64 of the fetched bytes.

Definition at line 153 of file mdl_state.h.

Referenced by internal_mdl_fetch_try_reuse(), internal_mdl_state_emit_pages(), internal_verify_page_rec(), and mdl_state_add_page().

◆ etag

◆ fetched_at

int64_t mdl_page_rec_t::fetched_at

Most recent HTTP result time (epoch s).

Definition at line 158 of file mdl_state.h.

Referenced by internal_mdl_fetch_try_reuse(), internal_mdl_state_emit_pages(), mdl_state_add_page(), mdl_state_note_page_response(), and priv_mdl_state_valid().

◆ last_modified

◆ rel_path

char mdl_page_rec_t::rel_path[k_mdl_relpath_max]

◆ response_status

uint16_t mdl_page_rec_t::response_status

Most recent HTTP status; zero if legacy.

Definition at line 159 of file mdl_state.h.

Referenced by internal_mdl_fetch_try_reuse(), internal_mdl_state_emit_pages(), mdl_state_add_page(), mdl_state_note_page_response(), and priv_mdl_state_valid().

◆ url_hash

uint64_t mdl_page_rec_t::url_hash

FNV-1a 64 of the source URL.

Definition at line 152 of file mdl_state.h.

Referenced by internal_mdl_state_emit_pages(), mdl_state_add_page(), mdl_state_find_page(), and mdl_state_note_page_response().


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