Skip to main content

LZ4_compress_HC

Function LZ4_compress_HC 

Source
pub unsafe extern "C" fn LZ4_compress_HC(
    src: *const c_char,
    dst: *mut c_char,
    srcSize: c_int,
    dstCapacity: c_int,
    compressionLevel: c_int,
) -> c_int
Expand description

LZ4_compress_HC(): compresses srcSize bytes from src into the dstCapacity byte buffer dst using the high compression (HC) algorithm at compressionLevel. Returns the number of bytes written to dst, or 0 if compression fails. Compression is guaranteed to succeed if dstCapacity >= LZ4_compressBound(srcSize).