Struct elrond_wasm::types::ManagedBytesNestedDecodeInput
source · [−]pub struct ManagedBytesNestedDecodeInput<M: ManagedTypeApi> { /* private fields */ }
Implementations
Trait Implementations
The remaining length of the input data.
Read the exact number of bytes required to fill the given buffer.
fn read_into_or_exit<ExitCtx: Clone>(
&mut self,
into: &mut [u8],
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
)
fn read_into_or_exit<ExitCtx: Clone>(
&mut self,
into: &mut [u8],
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
)
Read the exact number of bytes required to fill the given buffer. Exit early if there are not enough bytes to fill the result. Read more
fn read_specialized<T, C, F>(
&mut self,
context: C,
else_deser: F
) -> Result<T, DecodeError> where
T: TryStaticCast,
C: TryStaticCast,
F: FnOnce(&mut Self) -> Result<T, DecodeError>,
fn read_specialized_or_exit<T, C, ExitCtx, F>(
&mut self,
context: C,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !,
else_deser: F
) -> T where
T: TryStaticCast,
C: TryStaticCast,
F: FnOnce(&mut Self, ExitCtx) -> T,
ExitCtx: Clone,
True if all data from the buffer has already been used.
Read a single byte from the input.
fn read_byte_or_exit<ExitCtx>(
&mut self,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !
) -> u8 where
ExitCtx: Clone,
fn read_byte_or_exit<ExitCtx>(
&mut self,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !
) -> u8 where
ExitCtx: Clone,
Read a single byte from the input.