logo

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
  1. start of the block in the raw file
size: u32
  1. size of the block
adler: u32
  1. Adler32 of the raw bytes modulo 0xFFFFFFFF, as hex, with the last letter removed
raw_hash: MD5Sum
  1. MD5 hash of the raw bytes
compressed_start: u32
  1. number of bytes already written to compressed file (without magic bytes)
compressed_size: u32
  1. number of compressed bytes
compressed_hash: MD5Sum
  1. MD5 hash of compressed bytes

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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

Performs the conversion.

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line of the formatted output will be prefixed with the indent. Read more

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line except for the first of the formatted output will be prefixed with the indent. Read more

Performs the conversion.

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.