Trait zebra_chain::serialization::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§
sourcefn read_4_bytes(&mut self) -> Result<[u8; 4]>
fn read_4_bytes(&mut self) -> Result<[u8; 4]>
Convenience method to read a [u8; 4]
.
sourcefn read_12_bytes(&mut self) -> Result<[u8; 12]>
fn read_12_bytes(&mut self) -> Result<[u8; 12]>
Convenience method to read a [u8; 12]
.
sourcefn read_32_bytes(&mut self) -> Result<[u8; 32]>
fn read_32_bytes(&mut self) -> Result<[u8; 32]>
Convenience method to read a [u8; 32]
.
sourcefn read_64_bytes(&mut self) -> Result<[u8; 64]>
fn read_64_bytes(&mut self) -> Result<[u8; 64]>
Convenience method to read a [u8; 64]
.
Implementors§
impl<R: Read + ?Sized> ReadZcashExt for R
Mark all types implementing Read
as implementing the extension.