zstd_decompress_using_ddict(9)
π zstd_decompress_using_ddict(9) β a Kernel API Manual moment
okay so bestie, welcome to the kernel API manual, this one's about zstd_decompress_using_ddict and it's literally the "un-squish my data with my special little dictionary" function π
β¨ NAME β¨
zstd_decompress_using_ddict β decompress src into dst using a dictionary, that's the whole vibe fr fr π
πΈ SYNOPSIS πΈ
size_t zstd_decompress_using_ddict (zstd_dctx *dctx , void *dst , size_t
dst_capacity , const void *src , size_t src_size , const zstd_ddict
*ddict );
π¦ ARGUMENTS π¦
dctxβ the decompression context. your main character struct π«Άdstβ the buffer you're decompressingsrcinto. the destination slay destination.dst_capacityβ the size of the destination buffer. and listen, it must be at least as large as the decompressed size, no cap. if you (the caller) can't upper bound the decompressed size, then honestly bestie it's better to use the streaming API instead. πsrcβ the zstd compressed data you're decompressing. multiple concatenated frames and skippable frames are allowed, iconic behavior honestly πsrc_sizeβ the exact size of the data to decompress. precise queen behavior πddictβ the dictionary to be used. the little helper π§
β RETURN β
Returns the decompressed size, or an error (rude of it, honestly) β and you can check for that error using zstd_is_error.
π₯ SEE ALSO π₯
the whole squad, no one gets left behind π
- Kernel file
./include/linux/zstd.h zstd_compress_bound(9)zstd_is_error(9)zstd_get_error_code(9)zstd_get_error_name(9)zstd_min_clevel(9)zstd_max_clevel(9)zstd_default_clevel(9)zstd_get_params(9)zstd_get_cparams(9)zstd_cctx_set_param(9)zstd_cctx_workspace_bound(9)zstd_cctx_workspace_bound_with_ext_seq_prod(9)zstd_init_cctx(9)zstd_compress_cctx(9)zstd_create_cctx_advanced(9)zstd_free_cctx(9)zstd_create_cdict_byreference(9)zstd_free_cdict(9)zstd_compress_using_cdict(9)zstd_dctx_workspace_bound(9)zstd_init_dctx(9)zstd_decompress_dctx(9)zstd_create_ddict_byreference(9)zstd_free_ddict(9)zstd_create_dctx_advanced(9)zstd_free_dctx(9)zstd_cstream_workspace_bound(9)zstd_cstream_workspace_bound_with_ext_seq_prod(9)zstd_init_cstream(9)zstd_reset_cstream(9)zstd_compress_stream(9)zstd_flush_stream(9)zstd_end_stream(9)zstd_dstream_workspace_bound(9)zstd_init_dstream(9)zstd_reset_dstream(9)zstd_decompress_stream(9)zstd_find_frame_compressed_size(9)zstd_get_frame_header(9)zstd_compress_sequences_and_literals(9)
ok that's the whole page, go forth and decompress responsibly bestie π
and finally, the cute little sign-off: this one lives in ./include/linux, it's dated October 2026, and the page itself is zstd_decompress_using_ddict(9) from the Kernel API Manual. mwah, 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