Add implementation for align_to_byte

This commit is contained in:
Bradlee Speice 2019-05-06 12:24:03 -04:00
parent 06dab779c9
commit 94ae155a5b

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