pub enum VpkMethod {
OneSample,
TwoSample,
}
Expand description
Valid lookback methods for a VPK compressed file.
OneSample
directly encodes the offset value in stream,
while TwoSample
encodes a modified form of the offset as either one
or two values.
The two sample mode encodes an offset by adding eight to the original value,
then dividing that value by four. If there is no remainder,
the quotient is stored as a single sample. Otherwise,
the remainder - 1
is stored followed by the quotient
Variants
OneSample
TwoSample
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VpkMethod
impl UnwindSafe for VpkMethod
Blanket Implementations
Mutably borrows from an owned value. Read more