LZ4_compress_fast_continue(9)
okay bestie, welcome to the Kernel API Manual page for LZ4_compress_fast_continue β section 9 energy, no cap. π
π«Ά
β¨ NAME β¨
LZ4_compress_fast_continue β compress src using data from previously compressed blocks as a dictionary. It's giving "reuse the lore" but for compression. π
π¦ SYNOPSIS π¦
int LZ4_compress_fast_continue (LZ4_stream_t *streamPtr , const char
*src , char *dst , int srcSize , int maxDstSize , int acceleration );
π ARGUMENTS π
streamPtrβ pointer to the previousLZ4_stream_tstructure. It's the bestie that remembers the last block. π«Άsrcβ source address of the original data. The raw material, the main character.dstβ output buffer address of the compressed data, which must be already allocated. No last-minute "alloc bestie?" okay? πsrcSizeβ size of the input data. Max supported value isLZ4_MAX_INPUT_SIZE. Do not exceed it, fr fr.maxDstSizeβ full or partial size of bufferdestwhich must be already allocated. Yes, the original saysdesthere β we keep it exactly. πaccelerationβ acceleration factor. That's the whole vibe of this one.
π DESCRIPTION π
Compress buffer content src, using data from previously compressed blocks as a dictionary to improve compression ratio. The previous blocks are doing unpaid dictionary labor, and honestly they ate. π₯
Important, bestie: previous data blocks are assumed to still be present and unmodified! Like, do not move them, do not edit them, do not let them vanish. They gotta stay right there. π
If maxDstSize >= LZ4_compressBound(srcSize), compression is guaranteed to succeed, and runs faster. That's the good path. β¨
π RETURN π
Number of bytes written into buffer dst or 0 if compression fails. So 0 means it did not slay. π
π SEE ALSO π
Kernel file ./include/linux/lz4.h β and the whole friend group:
LZ4_compressBound(9)LZ4_compress_default(9)LZ4_compress_fast(9)LZ4_compress_destSize(9)LZ4_decompress_fast(9)LZ4_decompress_safe(9)LZ4_decompress_safe_partial(9)LZ4_compress_HC(9)LZ4_resetStreamHC(9)LZ4_loadDictHC(9)LZ4_compress_HC_continue(9)LZ4_saveDictHC(9)LZ4_resetStream(9)LZ4_loadDict(9)LZ4_saveDict(9)LZ4_setStreamDecode(9)LZ4_decompress_safe_continue(9)LZ4_decompress_fast_continue(9)LZ4_decompress_safe_usingDict(9)LZ4_decompress_fast_usingDict(9)
signed off with love by source ./include/linux, dated October 2026, and filed under LZ4_compress_fast_continue(9) ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms