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

export interface Chunk {
hash: string;
offset: number;
size: number;
}

Properties

PropertyTypeDescription
hashstringHash of the chunk (blake3)
offsetnumberThe offset position of the chunk in the file
sizenumberSize of the chunk in bytes