LZ4_decompress_fast(9)
π NAME π
okay bestie, welcome to LZ4_decompress_fast(9) from the Kernel API Manual β this page is literally about LZ4_decompress_fast β Decompresses data from source into dest. β¨
β¨ SYNOPSIS β¨
the signature is giving exactly this:
int LZ4_decompress_fast (const char *source , char *dest , int
originalSize );
π ARGUMENTS π
sourceβ source address of the compressed data π«Άdestβ output buffer address of the uncompressed data which must be already allocated withoriginalSizebytes πoriginalSizeβ is the original and therefore uncompressed size πΈ
π¦ DESCRIPTION π¦
okay so this function decompresses data from source into dest, and it fully respects memory boundaries for properly formed compressed data β no cap. it is a bit faster than LZ4_decompress_safe, which is iconic, BUT π it does not provide any protection against intentionally modified data stream (malicious input). use this function in trusted environment only (data to decode comes from a trusted source). periodt. π₯
bestie, this is the warning moment: trusted environment only β intentionally modified data stream / malicious input is not it. π¨
πΈ RETURN πΈ
it returns the number of bytes read from the source buffer, or a negative result if decompression fails. thatβs the whole return tea. π
π₯ SEE ALSO π₯
kernel file ./include/linux/lz4.h, plus the whole squad:
LZ4_compressBound(9)LZ4_compress_default(9)LZ4_compress_fast(9)LZ4_compress_destSize(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)
okay thatβs the page, bestie: source ./include/linux, version/date October 2026, and this is LZ4_decompress_fast(9) β byeee π
β¨
π¦ 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