Skip to main content

encode_index

Function encode_index 

Source
pub fn encode_index(idx: &FrameIndex) -> Bytes
Expand description

v0.8.4 #73 H-2: emit the v2 layout (with source_etag / source_compressed_size). Pre-v0.8.4 deployments that PUT under v1 are still readable (decode_index dispatches on the version field) — only the writer path is bumped here.

v0.9 #106: when idx.sse_v3 is Some(..) (= source object was SSE-S4 chunked / S4E6), emit v3 instead — same v2 layout plus a trailing 30-byte SSE chunk-geometry block before the entries table. v0.8.x readers ignore unknown versions (UnsupportedVersion(3)) → sidecar is treated as missing → Range GET falls back to the existing buffered fallback, so v3 is forward-safe.