Skip to main content

segment_sources

Function segment_sources 

Source
pub fn segment_sources(
    data: Vec<u8>,
    limits: &Limits,
) -> Result<Option<SegmentSources>>
Expand description

Produce the ordered per-segment PeeledSource handles for a segmented image, or Ok(None) when data is not a segment set. Each segment is materialized via its own crate::Access (in-place window / zran index / temp spill), in segment-number order — the primitive both reassemble and a container reader’s SegmentBacking build on.

§Errors

Propagates a detect/executor failure (crate::ArchiveError).