pub struct TestParameterCursor<'a> { /* private fields */ }
Expand description
Test parameter cursor. Should not be constructed directly, use TestReceiveContext or TestInitContext.
Trait Implementations§
source§impl<'a> AsRef<[u8]> for TestParameterCursor<'a>
impl<'a> AsRef<[u8]> for TestParameterCursor<'a>
source§impl<'a> Read for TestParameterCursor<'a>
impl<'a> Read for TestParameterCursor<'a>
source§fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
Read a number of bytes into the provided buffer. The returned value is
Ok(n)
if a read was successful, and n
bytes were read (n
could be
0).source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
Read exactly the required number of bytes. If not enough bytes could be
read the function returns
Err(_)
, and the contents of the given buffer
is unspecified.source§fn read_array<const N: usize>(&mut self) -> Result<[u8; N], ParseError>
fn read_array<const N: usize>(&mut self) -> Result<[u8; N], ParseError>
Load an array of the given size.