pub struct ByteArrayReader<'a> { /* fields omitted */ }
Expand description
Returns a reference to the inner data as a
slice.
Verifies if the specified number of bytes can be
read from this struct.
Returns:
Result(())
: If it is possible to read the specified
number of bytes;
Result(ErrorKind::UnableToReadData)
: If it is not
possible to read the specified number of bytes;
Returns the current size of the data.
Returns the current offset of the data.
Sets the current offset. If offset is larger than the length, it will
set the offset to to the length of the data. Read more
Returns true if this reader is empty.
Returns the number of bytes available in the reader.
This method verifies if a certain amount of bytes can be read/extracted. Read more
Reads a single byte from the source. Read more
Reads the specified number of bytes from the source. Read more
Skips some bytes from the source using a u64 as its size. On
64-bit systems, this is equivalent to Self::skip()
as
usize is a 64-bit value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes a byte array of a given size. Read more
Deserializes a byte array of a given size into slice. Read more
Deserializes a byte array of a given size into a vector. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Deserializes an UTF-8 String with a given size. Read more
Reads an UTF-8 String with a given size. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.