Struct assembly_pack::sd0::index::SegmentLine
source · pub struct SegmentLine {
pub start: u32,
pub size: u32,
pub adler: u32,
pub raw_hash: MD5Sum,
pub compressed_start: u32,
pub compressed_size: u32,
pub compressed_hash: MD5Sum,
}
Available on crate feature
sd0
only.Expand description
The rest of the file is one line for every compressed block, in the following form:
%08x:%08x:%s:%s:%08x:%08x:%s
with the following data:
Fields§
§start: u32
- start of the block in the raw file
size: u32
- size of the block
adler: u32
- Adler32 of the raw bytes modulo 0xFFFFFFFF, as hex, with the last letter removed
raw_hash: MD5Sum
- MD5 hash of the raw bytes
compressed_start: u32
- number of bytes already written to compressed file (without magic bytes)
compressed_size: u32
- number of compressed bytes
compressed_hash: MD5Sum
- MD5 hash of compressed bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SegmentLine
impl RefUnwindSafe for SegmentLine
impl Send for SegmentLine
impl Sync for SegmentLine
impl Unpin for SegmentLine
impl UnwindSafe for SegmentLine
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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Indentable for Twhere
T: Display,
impl<T> Indentable for Twhere
T: Display,
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more