Struct assembly_pack::sd0::index::SegmentLine [−][src]
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,
}
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 RefUnwindSafe for SegmentLine
impl Send for SegmentLine
impl Sync for SegmentLine
impl Unpin for SegmentLine
impl UnwindSafe for SegmentLine
Blanket Implementations
Mutably borrows from an owned value. Read more
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 T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
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