Enum bit_manager::Precision
[−]
[src]
pub enum Precision { Byte, Bit, }
An enum that represents how a stream is terminated
Variants
Byte
Represents a stream terminated by all zeroes in order to align the end to the next byte.
Only precise to last byte.
Usage
- 0110 => 0110(0000)
- 0110001 => 0110001(0)
- 01001000 => 01001000
Bit
Represents a stream terminated by a one bit followed by all zeroes in order to align the end to the next byte.
Allows precision to last bit, but requires data created by BitWriter and often extra space.
Usage
- 0110 => 0110(1000)
- 0110001 => 0110001(1)
- 01001000 => 01001000(10000000)