Skip to main content

Chunk

A Chunk represents a single chunk inside a FileEntry inside a RDIndex.
It describes the chunk hash, the offset and the chunk size.

Each instance is produced automatically by the SDK when scanning directories or generating file entries.


Structure

pub struct Chunk {
pub hash: String;
pub offset: u64;
pub size: u64;
}

Properties

PropertyTypeDescription
hashStringHash of the chunk (blake3)
offsetu64The offset position of the chunk in the file
sizeu64Size of the chunk in bytes