Skip to main content

chunk_content

Function chunk_content 

Source
pub fn chunk_content(
    bytes: &[u8],
    config: ChunkingConfig,
) -> Result<ChunkManifest, TransferError>
Expand description

Split bytes at rolling, content-defined boundaries.

Identical regions continue to produce identical chunks when bytes are inserted before them, unlike fixed-offset chunking. SHA-256 remains the integrity identity; the rolling value is used only to select boundaries.