pub struct FrameEmitInfo {
pub frame_header_range: Range<u32>,
pub blocks: Vec<FrameBlock>,
pub checksum_range: Option<Range<u32>>,
pub total_size: u32,
}Available on crate feature
lsm only.Expand description
Complete layout of an emitted zstd frame.
Captures the byte positions of the frame header, every block, and
the optional trailing content checksum. The ranges are u32 byte
offsets into the emitted buffer (compressed_data sink of
FrameCompressor).
Fields§
§frame_header_range: Range<u32>Byte range of the frame header (magic number + frame-header fields). For magicless frames the magic is omitted but the range still starts at offset 0.
blocks: Vec<FrameBlock>One entry per emitted block, in stream order. The last entry
has last_block = true.
checksum_range: Option<Range<u32>>Byte range of the trailing 4-byte content checksum (XXH64
truncated to low 32 bits). None if the frame was emitted
without content_checksum.
total_size: u32Total emitted frame size in bytes (one past the last byte of the frame).
Trait Implementations§
Source§impl Clone for FrameEmitInfo
impl Clone for FrameEmitInfo
Source§fn clone(&self) -> FrameEmitInfo
fn clone(&self) -> FrameEmitInfo
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 moreSource§impl Debug for FrameEmitInfo
impl Debug for FrameEmitInfo
Source§impl PartialEq for FrameEmitInfo
impl PartialEq for FrameEmitInfo
Source§fn eq(&self, other: &FrameEmitInfo) -> bool
fn eq(&self, other: &FrameEmitInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FrameEmitInfo
impl StructuralPartialEq for FrameEmitInfo
Auto Trait Implementations§
impl Freeze for FrameEmitInfo
impl RefUnwindSafe for FrameEmitInfo
impl Send for FrameEmitInfo
impl Sync for FrameEmitInfo
impl Unpin for FrameEmitInfo
impl UnsafeUnpin for FrameEmitInfo
impl UnwindSafe for FrameEmitInfo
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