Function zstd_safe::find_frame_compressed_size[][src]

pub fn find_frame_compressed_size(src: &[u8]) -> usize

ZSTD_findFrameCompressedSize()

src should point to the start of a ZSTD encoded frame or skippable frame

srcSize must be at least as large as the frame

Returns the compressed size of the frame pointed to by src, suitable to pass to ZSTD_decompress or similar, or an error code if given invalid input.