Struct bitstream::padding::NoPadding
[−]
[src]
pub struct NoPadding {}
NoPadding is the default Padding used by BitReader/BitWriter
This does not add any padding to the output stream, apart from filling up the the stream with 0s until the next byte is full.
Methods
impl NoPadding
[src]
fn new() -> Self
Create a new instance
Trait Implementations
impl Default for NoPadding
[src]
impl Debug for NoPadding
[src]
impl Padding for NoPadding
[src]
fn max_size(&self) -> usize
Get the maximum size of the padding. Read more
fn pad<W: Write>(
&self,
last_byte: u8,
byte_fill: u8,
writer: &mut W
) -> IOResult<()>
&self,
last_byte: u8,
byte_fill: u8,
writer: &mut W
) -> IOResult<()>
Pad the last bits of the stream. Read more
fn bits_left(&self, _: &[u8]) -> IOResult<usize>
Determine how many bits are left to read. Read more