Trait zebra_chain::serialization::read_zcash::ReadZcashExt

source ·
pub trait ReadZcashExt: Read {
    // Provided methods
    fn read_4_bytes(&mut self) -> Result<[u8; 4]> { ... }
    fn read_12_bytes(&mut self) -> Result<[u8; 12]> { ... }
    fn read_32_bytes(&mut self) -> Result<[u8; 32]> { ... }
    fn read_64_bytes(&mut self) -> Result<[u8; 64]> { ... }
}
Expand description

Extends Read with methods for writing Zcash/Bitcoin types.

Provided Methods§

source

fn read_4_bytes(&mut self) -> Result<[u8; 4]>

Convenience method to read a [u8; 4].

source

fn read_12_bytes(&mut self) -> Result<[u8; 12]>

Convenience method to read a [u8; 12].

source

fn read_32_bytes(&mut self) -> Result<[u8; 32]>

Convenience method to read a [u8; 32].

source

fn read_64_bytes(&mut self) -> Result<[u8; 64]>

Convenience method to read a [u8; 64].

Implementors§

source§

impl<R: Read + ?Sized> ReadZcashExt for R

Mark all types implementing Read as implementing the extension.