#[repr(C)]pub struct FrameHeader {
pub frameContentSize: u64,
pub windowSize: u64,
pub blockSizeMax: u32,
pub frameType: ZSTD_FrameType_e,
pub headerSize: u32,
pub dictID: u32,
pub checksumFlag: u32,
pub _reserved1: u32,
pub _reserved2: u32,
}Expand description
The header of a frame, see get_frame_header().
frameContentSize is CONTENTSIZE_UNKNOWN when the header does not
give it.
Fields§
§frameContentSize: u64< if == ZSTD_CONTENTSIZE_UNKNOWN, it means this field is not available. 0 means “empty”
windowSize: u64< can be very large, up to <= frameContentSize
blockSizeMax: u32§frameType: ZSTD_FrameType_e< if == ZSTD_skippableFrame, frameContentSize is the size of skippable content
headerSize: u32§dictID: u32< for ZSTD_skippableFrame, contains the skippable magic variant [0-15]
checksumFlag: u32§_reserved1: u32§_reserved2: u32Trait Implementations§
Source§impl Clone for ZSTD_FrameHeader
impl Clone for ZSTD_FrameHeader
Source§fn clone(&self) -> ZSTD_FrameHeader
fn clone(&self) -> ZSTD_FrameHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ZSTD_FrameHeader
Auto Trait Implementations§
impl Forget for ZSTD_FrameHeader
impl Freeze for ZSTD_FrameHeader
impl Move for ZSTD_FrameHeader
impl RefUnwindSafe for ZSTD_FrameHeader
impl Send for ZSTD_FrameHeader
impl Sync for ZSTD_FrameHeader
impl Unpin for ZSTD_FrameHeader
impl UnsafeUnpin for ZSTD_FrameHeader
impl UnwindSafe for ZSTD_FrameHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more