LZ4_compressBound(9)
π LZ4_compressBound π
okay bestie, so this page is from the Kernel API Manual, and the star of the show is LZ4_compressBound β she's that girl who tells you how much room to book before the party even starts π
β¨ NAME β¨
LZ4_compressBound β max output size in worst case scenarios π₯
like, how big can the output possibly get when everything goes wrong? she knows. no cap.
π¦ SYNOPSIS π¦
int LZ4_compressBound (size_t isize );
that's it. one argument. she's lowkey minimal and we stan π
πΈ ARGUMENTS πΈ
isizeβ the size of the input data, aka how much stuff you're trying to squeeze in there π
π RETURN π
she hands you back the max size that LZ4 may output in a "worst case" scenario β and yes, that means data not compressible π so nothing shrinks, nothing slays, everything is literally just itself and you still need the full buffer.
bestie pls: this is the worst case, not the typical case. allocate for the worst case and your future self will thank you π«Ά
π SEE ALSO π
the whole lz4 friend group, plus the header they all live in: the Kernel file ./include/linux/lz4.h π
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_compress_fast_continue(9)LZ4_setStreamDecode(9)LZ4_decompress_safe_continue(9)LZ4_decompress_fast_continue(9)LZ4_decompress_safe_usingDict(9)LZ4_decompress_fast_usingDict(9)
twenty of them. she has a big family. it's giving main character energy π
mwah π that's the whole page β brought to you from ./include/linux, dated October 2026, and officially filed under LZ4_compressBound(9). go forth and size your buffers correctly, icon β¨
π¦ 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