pub struct ChunkRef {
pub tag: [u8; 4],
pub offset: usize,
pub size: u32,
pub payload_offset: usize,
}Expand description
A located chunk within the container, from the framed [size][tag] walk.
Fields§
§tag: [u8; 4]The 4-byte tag.
offset: usizeByte offset of the chunk header (its size field) within the container.
size: u32Declared payload size in bytes (excludes the 8-byte chunk header).
payload_offset: usizeByte offset of the chunk payload (offset + 8).
Trait Implementations§
impl Eq for ChunkRef
impl StructuralPartialEq for ChunkRef
Auto Trait Implementations§
impl Freeze for ChunkRef
impl RefUnwindSafe for ChunkRef
impl Send for ChunkRef
impl Sync for ChunkRef
impl Unpin for ChunkRef
impl UnsafeUnpin for ChunkRef
impl UnwindSafe for ChunkRef
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