Trait btlib::ZeroExtendable

source ·
pub trait ZeroExtendable {
    // Required method
    fn zero_extend(&mut self, num_zeros: u64) -> Result<()>;
}
Expand description

Trait for types which can be extended with zero byes.

Required Methods§

source

fn zero_extend(&mut self, num_zeros: u64) -> Result<()>

Extends this stream with the given number of zero bytes. The position of the stream must be unchanged when this method returns successfully. The state of the stream in the case of an error is undefined.

Implementors§