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

    Variable lz4ReadAndCompressConst

    lz4ReadAndCompress: (
        path: string,
    ) => Promise<{ data: Buffer; uncompressedSize: number }> = binding.lz4ReadAndCompress

    Read a file and LZ4-block-compress it asynchronously on a pool thread. Returns the compressed data and the original uncompressed size (needed for decompression). Max file size: 512 MiB.

    Type Declaration

      • (path: string): Promise<{ data: Buffer; uncompressedSize: number }>
      • Parameters

        • path: string

          File path.

        Returns Promise<{ data: Buffer; uncompressedSize: number }>