pub fn pad_to_block(&mut self) -> std::io::Result<()> {
        let align = self.buf.len() % self.block_size;
        if align > 0 {
            self.write(&vec![0; self.block_size - std::mem::size_of::<Checksum>() - align])?;
        }
        Ok(())
    }
/// Pads from the current offset in the buffer to the end of the block.
Pads from the current offset in the buffer to the end of the block.
Pads from the current offset in the buffer to the end of the block .
pub fn pad_to_block(&mut self) -> std::io::Result<()> {
        let align = self.buf.len() % self.block_size;
        if align > 0 {
            self.write(&vec![0; self.block_size - std::mem::size_of::<Checksum>() - align])?;
        }
        Ok(())
    }
pub fn pad_to_block ( & mut self ) -> std :: io :: Result < ( ) > { let align = self . buf . len ( ) % self . block_size ; if align > 0 { self . write ( & vec ! [ 0 self block_size std mem size_of Checksum ( ) align ] ) ? ; } Ok ( ( ) ) }
Pads from the current offset in the buffer to the end of the block.
Pads from the current offset in the buffer to the end of the block .
&mut self
&mut self