LZ4_resetStream(9)
π LZ4_resetStream(9) β like, the Kernel API Manual page, bestie
okay so first things first: this is a page from the Kernel API Manual, and the star of the show is LZ4_resetStream(9). yes that's the same name as the file, we love a self-titled moment. π
β¨ NAME β¨
LZ4_resetStream β init an allocated LZ4_stream_t structure. that's it. that's the whole job. she's a reset button and she's booked and busy. π
π¦ SYNOPSIS π¦
void LZ4_resetStream (LZ4_stream_t *LZ4_stream );
look at her. void return, one pointer in, no drama. icon behavior fr fr. β
πΈ ARGUMENTS πΈ
LZ4_streamβ pointer to theLZ4_stream_tstructure. that's your little allocated blob of state, and you're handing her over so she can get wiped clean. π«Ά
π DESCRIPTION π
so here's the tea π: an LZ4_stream_t structure can be allocated once and then re-used multiple times. like, you do not need to malloc a fresh one every single time, that would be so wasteful and honestly kind of embarrassing.
use this function to init an allocated LZ4_stream_t structure and start a new compression. that's the vibe check: allocated already? cool, now reset her and go off. π
β¨
ngl bestie, the whole point is that you allocate once and reset repeatedly β that's the entire personality of this little function. no cap. π
π SEE ALSO π
- the kernel file
./include/linux/lz4.hβ like, the source of truth, go read her π§ 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_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)
the whole lz4 friend group really showed up for this one, we're obsessed ππ
and that's the page!! π this cutie came out of ./include/linux, dated October 2026, and yeah, the footer says LZ4_resetStream(9) again because she loves a full-circle moment. bye bestie, go reset something responsibly! π¦ππ
π¦ 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