zstd_create..._byreference(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zstd_create..._byreference(9) πŸ’…

Okay bestie, this one is straight from the Kernel API Manual β€” it’s giving β€œcreate a compression dictionary, but by reference.” ✨


✨ NAME ✨

zstd_create_cdict_byreference β€” create compression dictionary. πŸŽ€

✨ SYNOPSIS ✨

zstd_cdict * zstd_create_cdict_byreference (const void *dict , size_t
dict_size , zstd_compression_parameters cparams , zstd_custom_mem
custom_mem );

✨ ARGUMENTS ✨

  • dict β€” pointer to the dictionary buffer. That’s the dictionary-buffer pointer, bestie. 🫢
  • dict_size β€” size of the dictionary buffer. Gotta tell it how much buffer we’re working with. ✨
  • cparams β€” the manual literally says -- undescribed -- here, so no invented lore, periodt. πŸ™ˆ
  • custom_mem β€” memory allocator. Custom allocator energy. πŸ’…

✨ DESCRIPTION ✨

Heads up: this uses dict by reference (ZSTD_dlm_byRef), so it should be free before zstd_cdict is destroyed.

That’s the note. The reference lifestyle is real, and the lifetime detail matters. πŸ’–

✨ RETURN ✨

NULL on error, pointer to compression dictionary otherwise. Slay. πŸ”₯

✨ SEE ALSO ✨

Kernel file ./include/linux/zstd.h, plus all these friends:


Later, bestie! πŸ’– This page’s source/version is ./include/linux, dated October 2026. πŸŽ€

πŸ“¦ where this page comes from