LZ4_decompress_fast(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 with originalSize bytes πŸ’…
  • 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:


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