LZ4_loadDictHC(9)
okay bestie, this is LZ4_loadDictHC(9) from the Kernel API Manual β and weβre about to load a static dictionary into LZ4_streamHC like itβs our whole personality π
β¨
πΈ NAME πΈ
LZ4_loadDictHC β load a static dictionary into LZ4_streamHC. periodt.
β¨ SYNOPSIS β¨
int LZ4_loadDictHC (LZ4_streamHC_t *streamHCPtr , const char
*dictionary , int dictSize );
π ARGUMENTS π
streamHCPtrβ pointer to theLZ4HC_stream_t. thatβs the stream bestie.dictionaryβ dictionary to load. the main character of this call, honestly.dictSizeβ size of dictionary.
π DESCRIPTION π
Use this function to load a static dictionary into LZ4HC_stream. Any previous data will be forgotten β only 'dictionary' will remain in memory. Loading a size of 0 is allowed.
so yeah, itβs giving fresh-start energy: previous data? gone. only 'dictionary' stays in memory. and yes, loading a size of 0 is allowed β no drama, no cap πβ¨
π«Ά RETURN π«Ά
dictionary size, in bytes (necessarily <= 64 KB).
it hands you back the dictionary size, in bytes β and yes, necessarily <= 64 KB, thatβs literally the limit on the page, iykyk π
π SEE ALSO π
Kernel file ./include/linux/lz4.h β the whole squad lives there:
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_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/version: ./include/linux β date: October 2026 β page: LZ4_loadDictHC(9). mwah, bye π«Άβ¨
π¦ 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