Enum lzma_rs::compress::UnpackedSize
source · Expand description
Alternatives for handling unpacked size
Variants§
WriteToHeader(Option<u64>)
If the value is Some(u64)
, write the provided u64 value to the header.
There is currently no check in place that verifies that this is the actual number of bytes
provided by the input stream.
If the value is None
, write the special 0xFFFF_FFFF_FFFF_FFFF
code to the header,
indicating that the unpacked size is unknown.
SkipWritingToHeader
Do not write anything to the header. The unpacked size needs to be stored elsewhere and provided when reading the file. Note that this is a non-standard way of writing LZMA data, but is used by certain libraries such as OpenCTM.
Trait Implementations§
source§impl Clone for UnpackedSize
impl Clone for UnpackedSize
source§fn clone(&self) -> UnpackedSize
fn clone(&self) -> UnpackedSize
Returns a copy of the value. Read more
1.0.0 · 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 UnpackedSize
impl Debug for UnpackedSize
source§impl Default for UnpackedSize
impl Default for UnpackedSize
source§fn default() -> UnpackedSize
fn default() -> UnpackedSize
Returns the “default value” for a type. Read more