lz77_encode_literals(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈

  • dst advanced to new position ✨

πŸ’œ SEE ALSO πŸ’œ


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