mirror of
https://github.com/bspeice/kaitai_rust
synced 2024-11-21 21:38:09 -05:00
Add implementation for align_to_byte
This commit is contained in:
parent
06dab779c9
commit
94ae155a5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user