Struct bitcoin::util::bip158::BitStreamWriter [−][src]
pub struct BitStreamWriter<'a> { /* fields omitted */ }
Bitwise stream writer
Implementations
impl<'a> BitStreamWriter<'a>
[src]
impl<'a> BitStreamWriter<'a>
[src]pub fn new(writer: &'a mut dyn Write) -> BitStreamWriter<'_>
[src]
Create a new BitStreamWriter that writes bitwise to a given writer
pub fn write(&mut self, data: u64, nbits: u8) -> Result<usize, Error>
[src]
Write nbits bits from data
pub fn flush(&mut self) -> Result<usize, Error>
[src]
flush bits not yet written