pub struct FrameHeaderInfo {
pub content_size: FrameContentSize,
pub window_size: u64,
pub dictionary_id: Option<u32>,
pub content_checksum: bool,
pub header_size: usize,
}Expand description
Frame header fields decoded by read_frame_header_info, mirroring the
values the C ZSTD_getFrameHeader fills into a ZSTD_FrameHeader.
Fields§
§content_size: FrameContentSizeDeclared decompressed size, or FrameContentSize::Unknown when the
header omits the Frame_Content_Size field.
window_size: u64Decoder window size in bytes (the minimum buffer needed to decode the frame). For single-segment frames this equals the content size.
dictionary_id: Option<u32>Dictionary id required to decode the frame, if the header carries one.
content_checksum: boolWhether a 32-bit content checksum trails the frame.
header_size: usizeHeader length in bytes, measured in the parsed input format: it includes
the 4-byte magic number in the default format, but excludes it when
parsed as magicless (read_frame_header_info(.., true)), since those 4
bytes are not present on the wire in that mode.
Trait Implementations§
Source§impl Clone for FrameHeaderInfo
impl Clone for FrameHeaderInfo
Source§fn clone(&self) -> FrameHeaderInfo
fn clone(&self) -> FrameHeaderInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more