Variable lz4ReadAndCompressConst
lz4ReadAndCompress: (
path: string,
) => Promise<{ data: Buffer; uncompressedSize: number }> = binding.lz4ReadAndCompress
Type Declaration
- (path: string): Promise<{ data: Buffer; uncompressedSize: number }>
Returns Promise<{ data: Buffer; uncompressedSize: number }>
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.