pub struct ByteBlockReader;
Expand description
The util struct for reading byte blocks.
Implementations§
source§impl ByteBlockReader
impl ByteBlockReader
sourcepub fn decode(encoding: AccountBlockFormat, input: &[u8]) -> IoResult<Vec<u8>>
pub fn decode(encoding: AccountBlockFormat, input: &[u8]) -> IoResult<Vec<u8>>
Decode the input byte array using the specified format.
Typically, the input byte array is the output of ByteBlockWriter::finish().
Note that calling this function with AccountBlockFormat::AlignedRaw encoding will result in panic as the input is already decoded.
Auto Trait Implementations§
impl RefUnwindSafe for ByteBlockReader
impl Send for ByteBlockReader
impl Sync for ByteBlockReader
impl Unpin for ByteBlockReader
impl UnwindSafe for ByteBlockReader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more