LZ4_saveDictHC(9)
πΎ LZ4_saveDictHC(9) β Save static dictionary from LZ4HC_stream πΎ
okay bestie, this is the Kernel API Manual page for LZ4_saveDictHC(9), and weβre about to make dictionary-saving make sense. no cap. π«Ά
π NAME π
LZ4_saveDictHC - Save static dictionary from LZ4HC_stream.
β¨ SYNOPSIS β¨
int LZ4_saveDictHC (LZ4_streamHC_t *streamHCPtr , char *safeBuffer , int
maxDictSize );
That signature is the whole vibe check, bestie. π
π ARGUMENTS π
streamHCPtrβ pointer to theLZ4HC_stream_tstructure. main character energy.safeBufferβ buffer to save dictionary to, must be already allocated. donβt forget this part. πmaxDictSizeβ size ofsafeBuffer. the limit is real. β¨
π DESCRIPTION π
Okay so hereβs the tea: if a previously compressed data block is not guaranteed to remain available at its memory location, save it into a safer place (char *safeBuffer). Thatβs the whole save-dict moment. π
π₯ NOTE π₯
You donβt need to callLZ4_loadDictHCafterwards β the dictionary is immediately usable, so you can therefore callLZ4_compress_HC_continue. slay, no extra step. π§
π RETURN π
saved dictionary size in bytes (necessarily <= maxDictSize), or 0 if error. thatβs the whole return vibe. π
π SEE ALSO π
Kernel file ./include/linux/lz4.h β and bestie, hereβs 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_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)
mwah π from./include/linux, dated October 2026, and this is literally theLZ4_saveDictHC(9)page. periodt. π«Ά
π¦ 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