fast-fs-hash - v0.0.0-rc4
    Preparing search index...

    Interface FileHashCacheEntry

    A single fully resolved file entry with stat metadata and content hash.

    Scalar fields (path, index, size, mtimeMs, ctimeMs, changed) are eagerly populated. contentHash is a zero-copy Buffer view into the native dataBuf. contentHashHex is lazily computed on first access.

    interface FileHashCacheEntry {
        changed: boolean;
        contentHash: Buffer;
        ctimeMs: number;
        index: number;
        mtimeMs: number;
        path: string;
        size: number;
        get contentHashHex(): string;
    }
    Index

    Properties

    changed: boolean

    true if the file content changed from the cached version (or is a new file).

    contentHash: Buffer

    16-byte xxHash3-128 content hash (zero-copy view into the native dataBuf).

    ctimeMs: number

    Change time in milliseconds since epoch.

    index: number

    Index in the file list.

    mtimeMs: number

    Modification time in milliseconds since epoch.

    path: string

    Absolute file path.

    size: number

    File size in bytes.

    Accessors

    • get contentHashHex(): string

      Content hash as a 32-character lowercase hex string (xxHash3-128). Lazily computed.

      Returns string