Add implementation for `align_to_byte`
parent
06dab779c9
commit
94ae155a5b
|
@ -236,7 +236,11 @@ impl<'a> KStream for BytesReader<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn align_to_byte(&self) -> KResult<()> {
|
fn align_to_byte(&self) -> KResult<()> {
|
||||||
unimplemented!()
|
let mut inner = self.state.borrow_mut();
|
||||||
|
inner.bits = 0;
|
||||||
|
inner.bits_left = 0;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Clean up the casting nightmare
|
// TODO: Clean up the casting nightmare
|
||||||
|
|
Loading…
Reference in New Issue