LZ4_loadDictHC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the LZ4HC_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:


okay that’s the page, bestie πŸ’– source/version: ./include/linux β€” date: October 2026 β€” page: LZ4_loadDictHC(9). mwah, bye 🫢✨

πŸ“¦ where this page comes from