zstd_get_frame_header(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the page for zstd_get_frame_header(9) from the Kernel API Manual! ✨ It's giving frame-header-extraction realness, and we're gonna go through it together. No cap. πŸ’…

πŸ’– NAME πŸ’–

zstd_get_frame_header β€” extracts the parameters from a zstd or skippable frame. That's it, that's the whole vibe. πŸŽ€

✨ SYNOPSIS ✨

the signature, character for character, no edits bestie:

size_t zstd_get_frame_header (zstd_frame_header *params , const void *src , size_t src_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • params β€” on success, the frame parameters are written here. ✨
  • src β€” the source buffer. It must point to a zstd or skippable frame. Like, that's not optional, bestie. 🫢
  • src_size β€” the size of the source buffer. πŸ¦‹

πŸ”₯ RETURN πŸ”₯

return value check, bestie:

  • 0 β€” success. Slay. πŸ’–
  • if more data is required β€” it returns how many bytes must be provided to make forward progress. πŸ”₯
  • otherwise β€” it returns an error, and you can check that error using zstd_is_error. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/linux/zstd.h β€” that's the home base. 🏠


mwah πŸ’– source/version: ./include/linux Β· date: October 2026 Β· page: zstd_get_frame_header(9) β€” bye bestie, ily! 🌸

πŸ“¦ where this page comes from