lz77_encode_literals(9)
β¨ NAME β¨
okay so welcome to lz77_encode_literals(9), straight outta the Kernel API Manual π
lz77_encode_literals β literals encoding. periodt.
π¦ SYNOPSIS π¦
void * lz77_encode_literals (const void *start , const void *end , void *dst , long *f , u32 *fc , void **fp );
π ARGUMENTS π
startβ where you start copying literals from, aka the uncompressed buffer πendβ when to stop copying, also from the uncompressed buffer πdstβ the compressed buffer π«Άfβ pointer to the current flag value βfcβ pointer to the current flag count π₯fpβ pointer to the current flag address π
πΈ DESCRIPTION πΈ
So it batch copies literals from start to dst, updating flag values accordingly. iconic behavior, no cap π
bestie, important caveat: this lowkey assumes all args were previously checked π
It's giving the MS-XCA 2.3.4 section "Plain LZ77 Compression Algorithm Details" β "Processing". iykyk π¦
π RETURN π
dstadvanced to new position β¨
π SEE ALSO π
- Kernel file
./fs/smb/common/compress/lz77.cπ lz77_encode_match(9)π«Ά
shoutout to the footer besties: source/version ./fs/smb/common/compress, dated October 2026, page lz77_encode_literals(9) β slay, 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