pub fn decode_range_from_frame(
frame_bytes: &[u8],
ranges: &[(u64, u64)],
options: &DecodeOptions,
) -> Result<(DataObjectDescriptor, Vec<Vec<u8>>)>Expand description
Decode partial ranges from a single data-object frame.
Companion to decode_object_from_frame for the
decode_range code path: takes one frame’s bytes, extracts the
requested element ranges from its payload, and applies mask-aware
non-finite restoration per range.
Returns (descriptor, parts) in the same shape as
decode_range.
options.verify_hash is ignored by this function. The
inline hash covers the whole post-encoding payload of the
source frame; verifying it requires reading every byte that
range decode is designed to avoid. When integrity matters,
call decode_object_from_frame with verify_hash=true —
that path materialises the full body anyway, so the
verification is free. See plans/DESIGN.md
§“Integrity Hashing” and plans/WIRE_FORMAT.md §11.1.