Add implementation for `align_to_byte`

master
Bradlee Speice 2019-05-06 12:24:03 -04:00
parent 06dab779c9
commit 94ae155a5b
1 changed files with 5 additions and 1 deletions

View File

@ -236,7 +236,11 @@ impl<'a> KStream for BytesReader<'a> {
}
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