Module splitstream

Module splitstream 

Source
Expand description

Split Stream file format implementation.

This module implements the Split Stream format for efficiently storing and transferring data with inline content and external object references, supporting compression and content deduplication.

Structsยง

DigestMap
A map of content digests to object IDs, maintained in sorted order for binary search.
DigestMapEntry
A single entry in the digest map, mapping content SHA256 hash to fs-verity object ID.
SplitStreamReader
Reader for parsing split stream format files with inline content and external object references.
SplitStreamWriter
Writer for creating split stream format files with inline content and external object references.

Enumsยง

ChunkType ๐Ÿ”’
SplitStreamData
Data fragment from a split stream, either inline content or an external object reference.

Functionsยง

read_into_vec ๐Ÿ”’
Using the provided vec as a buffer, read exactly [size] bytes of content from [reader] into it. Any existing content in vec will be discarded; however its capacity will be reused, making this function suitable for use in loops.
read_u64_le ๐Ÿ”’