zstd_find_f...pressed_size(9)
π zstd_find_frame_compressed_size(9) π
okay so real talk, bestie β this is a page straight out of the Kernel API Manual, and it's about zstd_find_frame_compressed_size, which fr fr just tells you how big a compressed frame is. that's it. that's the whole vibe. let's get into it π
β¨ NAME β¨
zstd_find_frame_compressed_size β returns the size of a compressed frame π
πΈ SYNOPSIS πΈ
size_t zstd_find_frame_compressed_size (const void *src , size_t
src_size );
π¦ ARGUMENTS π¦
srcβ the source buffer, bestie. it should point to the start of a zstd encoded frame, or a skippable frame. no cap, that's the requirement πsrc_sizeβ the size of the source buffer. it must be at least as large as the size of the frame. like, at minimum. that's the floor, not a suggestion π
β RETURN β
you get back the compressed size of the frame that src points to π«Ά β or an error, which you can check with zstd_is_error. and the result is suitable to pass to ZSTD_decompress or similar functions. cute, right? it's giving "hand this straight to the decompressor and go" energy π
π SEE ALSO π
the kernel file ./include/linux/zstd.h, plus this whole entire friend group:
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_decompress_using_ddict(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_get_frame_header(9)zstd_compress_sequences_and_literals(9)
ok that's genuinely everyone, i'm not skipping a single one of them, i would never do that to you π§
and that's the whole page, bestie!! π this came from ./include/linux, dated October 2026, and the header up top was zstd_find_f...pressed_size(9) (yes the title got abbreviated by the manpage formatter, iconic of it honestly π). now go measure some frames, you main character π₯πβ¨
π¦ 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