LZ4_decompr...st_usingDict(9)
π¦ LZ4_decompress_fast_usingDict β Kernel API Manual β¨
okay bestie, so this one's a kernel API page, and honestly? it's giving "niche but iconic." it's the LZ4_decompress_fast_usingDict page from the Kernel API Manual, and we're gonna get you across the finish line π
π NAME
LZ4_decompress_fast_usingDict β literally the same thing as calling LZ4_setStreamDecode() and then following it up with LZ4_decompress_fast_continue(). two-for-one combo meal, no cap π
β¨ SYNOPSIS
int LZ4_decompress_fast_usingDict (const char *source , char *dest , int
originalSize , const char *dictStart , int dictSize );
that's the whole vibe. five args, one int coming back at you π«Ά
π ARGUMENTS
sourceβ the source address of the compressed data. this is where the squished-up bytes live, bestie ποΈdestβ the output buffer address for the uncompressed data. heads up: it has to already be allocated withoriginalSizebytes. you can't just show up with an empty pointer and hope for the best πoriginalSizeβ the original (and therefore uncompressed) size. yes, it's the size before compression, iykykdictStartβ pointer to the start of the dictionary in memory πdictSizeβ size of the dictionary
πΈ DESCRIPTION
so this decoding function works exactly the same as a combination of LZ4_setStreamDecode followed by LZ4_decompress_fast_continue. same energy, one call β¨
and here's the slay part: it's stand-alone, so it doesn't need an LZ4_streamDecode_t structure at all. no setup arc, no extra struct, just vibes and a dictionary π₯
π RETURN
it returns the number of bytes decompressed into the destination buffer (necessarily <= maxDecompressedSize), orβ¦ a negative result in case of error π
so like, check your return value, bestie. negative means something went wrong and we do not ignore that π
π 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_compress_fast_continue(9)LZ4_setStreamDecode(9)LZ4_decompress_safe_continue(9)LZ4_decompress_fast_continue(9)LZ4_decompress_safe_usingDict(9)
and that's the page, babe π§ go forth and decompress responsibly. this little icon came from ./include/linux and it's stamped October 2026 β see you in the next stream decode, mwah π
π¦ 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