mirror of
				https://github.com/bspeice/kaitai_rust
				synced 2025-11-04 02:20:46 -05:00 
			
		
		
		
	Add implementation for align_to_byte
				
					
				
			This commit is contained in:
		@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user