pub struct ByteOrdered<T, E> { /* private fields */ }
Expand description
Wrapper type for a reader or writer with an assumed byte order.
More details can be found at the crate level documentation.
Implementations§
Source§impl<T> ByteOrdered<T, StaticEndianness<LittleEndian>>
impl<T> ByteOrdered<T, StaticEndianness<LittleEndian>>
Source§impl<T> ByteOrdered<T, StaticEndianness<BigEndian>>
impl<T> ByteOrdered<T, StaticEndianness<BigEndian>>
Source§impl<T> ByteOrdered<T, StaticEndianness<NativeEndian>>
impl<T> ByteOrdered<T, StaticEndianness<NativeEndian>>
Source§impl<T> ByteOrdered<T, StaticEndianness<NetworkEndian>>
impl<T> ByteOrdered<T, StaticEndianness<NetworkEndian>>
Source§impl<T> ByteOrdered<T, Endianness>
impl<T> ByteOrdered<T, Endianness>
Sourcepub fn runtime(inner: T, endianness: Endianness) -> Self
pub fn runtime(inner: T, endianness: Endianness) -> Self
Creates a new reader or writer that assumes data in the given byte
order known at run-time.
That is, the type representing the byte order
is the enum type Endianness
.
Although it is equivalent to ByteOrdered::new
, this function
leaves a code signal that subsequent calls depend on conditions
resolved at run-time. If you know the data’s endianness in compile
time, the other constructors are preferred (e.g. new
, le
or
be
), so as to avoid the overhead of dynamic dispatching.
Source§impl<T, E> ByteOrdered<T, E>where
E: Endian,
impl<T, E> ByteOrdered<T, E>where
E: Endian,
Sourcepub fn new(inner: T, endianness: E) -> Self
pub fn new(inner: T, endianness: E) -> Self
Creates a new reader or writer that assumes data in the given byte order. This flexible constructor admits any kind of byte order (static and dynamic).
Note: The other constructors (le
, be
, native
, and
runtime
) are more recommended because they are easier to use and
leave a better signal of whether the endianness is known at compile
time or at run time. For example, if you pass a value literal of type
Endianness
(such as Endianness::Little
), the program will perform
dynamic dispatching in spite of the fixed byte order. The use of this
method is more appropriate when constructing functions which are
generic over the endianness type.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Recovers the inner reader or writer from this wrapper. Information about the assumed byte order is discarded.
Sourcepub fn inner_mut(&mut self) -> &mut T
pub fn inner_mut(&mut self) -> &mut T
Obtains an exclusive mutable reference to the inner reader or writer in this wrapper. Information about the assumed byte order is ignored until the reference is dropped.
Sourcepub fn as_mut(&mut self) -> ByteOrdered<&mut T, E> ⓘwhere
E: Copy,
pub fn as_mut(&mut self) -> ByteOrdered<&mut T, E> ⓘwhere
E: Copy,
Converts from ByteOrdered<T, E>
to ByteOrdered<&mut T, E>
,
copying the endianness information.
Sourcepub fn into_parts(self) -> (T, E)
pub fn into_parts(self) -> (T, E)
Disbands a ByteOrder
into its parts.
Sourcepub fn map<F, U>(self, f: F) -> ByteOrdered<U, E> ⓘwhere
F: FnOnce(T) -> U,
pub fn map<F, U>(self, f: F) -> ByteOrdered<U, E> ⓘwhere
F: FnOnce(T) -> U,
Maps a ByteOrdered<T, E>
into a ByteOrdered<O, E>
by applying the
given function to the inner reader or writer.
Sourcepub fn into_endianness<E2: Endian>(self, endianness: E2) -> ByteOrdered<T, E2> ⓘ
pub fn into_endianness<E2: Endian>(self, endianness: E2) -> ByteOrdered<T, E2> ⓘ
Changes the assumed byte order of the reader or writer.
Sourcepub fn set_endianness(&mut self, endianness: E)
pub fn set_endianness(&mut self, endianness: E)
Modifies the assumed byte order of the reader or writer
inline with the value.
Since the endianness type needs to be the same,
this function is only relevant when
E
is a run-time defined byte order
(see Endianness
).
Sourcepub fn into_le(self) -> ByteOrdered<T, StaticEndianness<LittleEndian>> ⓘ
pub fn into_le(self) -> ByteOrdered<T, StaticEndianness<LittleEndian>> ⓘ
Changes the assumed byte order of the reader or writer to little endian.
Sourcepub fn into_be(self) -> ByteOrdered<T, StaticEndianness<BigEndian>> ⓘ
pub fn into_be(self) -> ByteOrdered<T, StaticEndianness<BigEndian>> ⓘ
Changes the assumed byte order of the reader or writer to little endian.
Sourcepub fn into_native(self) -> ByteOrdered<T, StaticEndianness<NativeEndian>> ⓘ
pub fn into_native(self) -> ByteOrdered<T, StaticEndianness<NativeEndian>> ⓘ
Changes the assumed byte order of the reader or writer to the system’s native endianness.
Sourcepub fn into_opposite(self) -> ByteOrdered<T, E::Opposite> ⓘwhere
E: Endian,
pub fn into_opposite(self) -> ByteOrdered<T, E::Opposite> ⓘwhere
E: Endian,
Converts the assumed endianness to the opposite of the current order.
Sourcepub fn endianness(&self) -> Ewhere
E: Copy,
pub fn endianness(&self) -> Ewhere
E: Copy,
Retrieves the byte order assumed by this wrapper.
Source§impl<R, E> ByteOrdered<R, E>where
R: ReadBytesExt,
E: Endian,
impl<R, E> ByteOrdered<R, E>where
R: ReadBytesExt,
E: Endian,
Sourcepub fn read_i8(&mut self) -> IoResult<i8>
pub fn read_i8(&mut self) -> IoResult<i8>
Reads a signed 8 bit integer from the underlying reader.
This method does exactly the same thing as read_i8
in
byteorder::ReadBytesExt
. It is included so that users do not have to
import the former trait.
§Errors
This method returns the same errors as Read::read_exact
.
§Examples
Read unsigned 8 bit integers from a Read
:
use byteordered::ByteOrdered;
let mut rdr = ByteOrdered::native(&[2, 5][..]);
assert_eq!(2, rdr.read_i8()?);
assert_eq!(5, rdr.read_i8()?);
Sourcepub fn read_u8(&mut self) -> IoResult<u8>
pub fn read_u8(&mut self) -> IoResult<u8>
Reads an unsigned 8 bit integer from the underlying reader.
This method does exactly the same thing as read_u8
in
byteorder::ReadBytesExt
. It is included so that users do not have to
import the former trait.
§Errors
This method returns the same errors as Read::read_exact
.
§Examples
Read unsigned 8 bit integers from a Read
:
use byteordered::ByteOrdered;
let mut rdr = ByteOrdered::native(&[2, 5][..]);
assert_eq!(2, rdr.read_u8()?);
assert_eq!(5, rdr.read_u8()?);
Sourcepub fn read_i16(&mut self) -> IoResult<i16>
pub fn read_i16(&mut self) -> IoResult<i16>
Reads a signed 16 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
§Examples
Read signed 16 bit big-endian integers from a Read
:
use byteordered::ByteOrdered;
let mut rdr = ByteOrdered::be(&[0x00, 0xc1, 0xff, 0x7c][..]);
assert_eq!(193, rdr.read_i16()?);
assert_eq!(-132, rdr.read_i16()?);
Sourcepub fn read_i16_into(&mut self, dst: &mut [i16]) -> IoResult<()>
pub fn read_i16_into(&mut self, dst: &mut [i16]) -> IoResult<()>
Reads a sequence of signed 16 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
§Examples
Read two signed 16 bit big-endian integers from a Read
:
let mut out = [0; 2];
let mut rdr = ByteOrdered::be(&[0x00, 0xc1, 0xff, 0x7c][..]);
rdr.read_i16_into(&mut out)?;
assert_eq!(out, [193, -132]);
Sourcepub fn read_u16(&mut self) -> IoResult<u16>
pub fn read_u16(&mut self) -> IoResult<u16>
Reads an unsigned 16 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u16_into(&mut self, dst: &mut [u16]) -> IoResult<()>
pub fn read_u16_into(&mut self, dst: &mut [u16]) -> IoResult<()>
Reads a sequence of unsigned 16 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_i32(&mut self) -> IoResult<i32>
pub fn read_i32(&mut self) -> IoResult<i32>
Reads a signed 32 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_i32_into(&mut self, dst: &mut [i32]) -> IoResult<()>
pub fn read_i32_into(&mut self, dst: &mut [i32]) -> IoResult<()>
Reads a sequence of signed 32 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u32(&mut self) -> IoResult<u32>
pub fn read_u32(&mut self) -> IoResult<u32>
Reads an unsigned 32 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u32_into(&mut self, dst: &mut [u32]) -> IoResult<()>
pub fn read_u32_into(&mut self, dst: &mut [u32]) -> IoResult<()>
Reads a sequence of unsigned 32 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_i64(&mut self) -> IoResult<i64>
pub fn read_i64(&mut self) -> IoResult<i64>
Reads a signed 64 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_i64_into(&mut self, dst: &mut [i64]) -> IoResult<()>
pub fn read_i64_into(&mut self, dst: &mut [i64]) -> IoResult<()>
Reads a sequence of signed 64 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u64(&mut self) -> IoResult<u64>
pub fn read_u64(&mut self) -> IoResult<u64>
Reads an unsigned 16 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u64_into(&mut self, dst: &mut [u64]) -> IoResult<()>
pub fn read_u64_into(&mut self, dst: &mut [u64]) -> IoResult<()>
Reads a sequence of unsigned 64 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_i128(&mut self) -> IoResult<i128>
pub fn read_i128(&mut self) -> IoResult<i128>
Reads a signed 128 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_i128_into(&mut self, dst: &mut [i128]) -> IoResult<()>
pub fn read_i128_into(&mut self, dst: &mut [i128]) -> IoResult<()>
Reads a sequence of signed 128 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u128(&mut self) -> IoResult<u128>
pub fn read_u128(&mut self) -> IoResult<u128>
Reads an unsigned 16 bit integer from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_u128_into(&mut self, dst: &mut [u128]) -> IoResult<()>
pub fn read_u128_into(&mut self, dst: &mut [u128]) -> IoResult<()>
Reads a sequence of unsigned 128 bit integers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_f32(&mut self) -> IoResult<f32>
pub fn read_f32(&mut self) -> IoResult<f32>
Reads a IEEE754 single-precision (4 bytes) floating point number from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_f32_into(&mut self, dst: &mut [f32]) -> IoResult<()>
pub fn read_f32_into(&mut self, dst: &mut [f32]) -> IoResult<()>
Reads a sequence of IEEE754 single-precision (4 bytes) floating point numbers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_f64(&mut self) -> IoResult<f64>
pub fn read_f64(&mut self) -> IoResult<f64>
Reads a IEEE754 double-precision (8 bytes) floating point number from the underlying reader.
§Errors
This method returns the same errors as Read::read_exact
.
Sourcepub fn read_f64_into(&mut self, dst: &mut [f64]) -> IoResult<()>
pub fn read_f64_into(&mut self, dst: &mut [f64]) -> IoResult<()>
Reads a sequence of IEEE754 double-precision (8 bytes) floating point numbers from the underlying reader.
The given buffer is either filled completely or an error is returned.
If an error is returned,
the contents of dst
are unspecified.
§Errors
This method returns the same errors as Read::read_exact
.
Source§impl<W, E> ByteOrdered<W, E>where
W: WriteBytesExt,
E: Endian,
impl<W, E> ByteOrdered<W, E>where
W: WriteBytesExt,
E: Endian,
Sourcepub fn write_i8(&mut self, x: i8) -> IoResult<()>
pub fn write_i8(&mut self, x: i8) -> IoResult<()>
Writes a signed 8 bit integer to the underlying writer.
Note that since this writes a single byte, no byte order conversions are used. It is included for completeness.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_u8(&mut self, x: u8) -> IoResult<()>
pub fn write_u8(&mut self, x: u8) -> IoResult<()>
Writes an unsigned 8 bit integer to the underlying writer.
Note that since this writes a single byte, no byte order conversions are used. It is included for completeness.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_i16(&mut self, x: i16) -> IoResult<()>
pub fn write_i16(&mut self, x: i16) -> IoResult<()>
Writes a signed 16 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
§Examples
Write signed 16 bit big-endian integers to a Write
:
use byteordered::ByteOrdered;
let mut wtr = ByteOrdered::be(Vec::new());
wtr.write_i16(193).unwrap();
wtr.write_i16(-132).unwrap();
assert_eq!(wtr.into_inner(), b"\x00\xc1\xff\x7c");
Sourcepub fn write_u16(&mut self, x: u16) -> IoResult<()>
pub fn write_u16(&mut self, x: u16) -> IoResult<()>
Writes an unsigned 16 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_i32(&mut self, x: i32) -> IoResult<()>
pub fn write_i32(&mut self, x: i32) -> IoResult<()>
Writes a signed 32 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_u32(&mut self, x: u32) -> IoResult<()>
pub fn write_u32(&mut self, x: u32) -> IoResult<()>
Writes an unsigned 32 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_i64(&mut self, x: i64) -> IoResult<()>
pub fn write_i64(&mut self, x: i64) -> IoResult<()>
Writes a signed 64 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_u64(&mut self, x: u64) -> IoResult<()>
pub fn write_u64(&mut self, x: u64) -> IoResult<()>
Writes an unsigned 64 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_i128(&mut self, x: i128) -> IoResult<()>
pub fn write_i128(&mut self, x: i128) -> IoResult<()>
Writes a signed 128 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Sourcepub fn write_u128(&mut self, x: u128) -> IoResult<()>
pub fn write_u128(&mut self, x: u128) -> IoResult<()>
Writes an unsigned 128 bit integer to the underlying writer.
§Errors
This method returns the same errors as Write::write_all
.
Trait Implementations§
Source§impl<T, E> BufRead for ByteOrdered<T, E>where
T: BufRead,
impl<T, E> BufRead for ByteOrdered<T, E>where
T: BufRead,
Source§fn fill_buf(&mut self) -> IoResult<&[u8]>
fn fill_buf(&mut self) -> IoResult<&[u8]>
Read
methods, if empty. Read moreSource§fn consume(&mut self, amt: usize)
fn consume(&mut self, amt: usize)
amount
of additional bytes from the internal buffer as having been read.
Subsequent calls to read
only return bytes that have not been marked as read. Read moreSource§fn read_line(&mut self, buf: &mut String) -> IoResult<usize>
fn read_line(&mut self, buf: &mut String) -> IoResult<usize>
0xA
byte) is reached, and append
them to the provided String
buffer. Read moreSource§fn has_data_left(&mut self) -> Result<bool, Error>
fn has_data_left(&mut self) -> Result<bool, Error>
buf_read_has_data_left
)read
. Read more1.83.0 · Source§fn skip_until(&mut self, byte: u8) -> Result<usize, Error>
fn skip_until(&mut self, byte: u8) -> Result<usize, Error>
byte
or EOF is reached. Read moreSource§impl<T: Clone, E: Clone> Clone for ByteOrdered<T, E>
impl<T: Clone, E: Clone> Clone for ByteOrdered<T, E>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T, E> From<(T, E)> for ByteOrdered<T, E>
impl<T, E> From<(T, E)> for ByteOrdered<T, E>
Source§impl<R, E> Read for ByteOrdered<R, E>where
R: Read,
impl<R, E> Read for ByteOrdered<R, E>where
R: Read,
Source§fn read(&mut self, buf: &mut [u8]) -> IoResult<usize>
fn read(&mut self, buf: &mut [u8]) -> IoResult<usize>
Source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> IoResult<usize>
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> IoResult<usize>
buf
. Read moreSource§fn read_to_string(&mut self, buf: &mut String) -> IoResult<usize>
fn read_to_string(&mut self, buf: &mut String) -> IoResult<usize>
buf
. Read moreSource§fn read_exact(&mut self, buf: &mut [u8]) -> IoResult<()>
fn read_exact(&mut self, buf: &mut [u8]) -> IoResult<()>
buf
. Read more1.36.0 · Source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
read
, except that it reads into a slice of buffers. Read moreSource§fn is_read_vectored(&self) -> bool
fn is_read_vectored(&self) -> bool
can_vector
)Source§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
read_buf
)Source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
read_buf
)cursor
. Read more1.0.0 · Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Read
. Read moreSource§impl<T, E> Seek for ByteOrdered<T, E>where
T: Seek,
impl<T, E> Seek for ByteOrdered<T, E>where
T: Seek,
Source§fn seek(&mut self, pos: SeekFrom) -> IoResult<u64>
fn seek(&mut self, pos: SeekFrom) -> IoResult<u64>
1.55.0 · Source§fn rewind(&mut self) -> Result<(), Error>
fn rewind(&mut self) -> Result<(), Error>
Source§fn stream_len(&mut self) -> Result<u64, Error>
fn stream_len(&mut self) -> Result<u64, Error>
seek_stream_len
)Source§impl<W, E> Write for ByteOrdered<W, E>where
W: Write,
impl<W, E> Write for ByteOrdered<W, E>where
W: Write,
Source§fn write(&mut self, buf: &[u8]) -> IoResult<usize>
fn write(&mut self, buf: &[u8]) -> IoResult<usize>
Source§fn flush(&mut self) -> IoResult<()>
fn flush(&mut self) -> IoResult<()>
Source§fn write_all(&mut self, buf: &[u8]) -> IoResult<()>
fn write_all(&mut self, buf: &[u8]) -> IoResult<()>
Source§fn write_fmt(&mut self, fmt: Arguments<'_>) -> IoResult<()>
fn write_fmt(&mut self, fmt: Arguments<'_>) -> IoResult<()>
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
can_vector
)Auto Trait Implementations§
impl<T, E> Freeze for ByteOrdered<T, E>
impl<T, E> RefUnwindSafe for ByteOrdered<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for ByteOrdered<T, E>
impl<T, E> Sync for ByteOrdered<T, E>
impl<T, E> Unpin for ByteOrdered<T, E>
impl<T, E> UnwindSafe for ByteOrdered<T, E>where
T: UnwindSafe,
E: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<R> ReadBytesExt for R
impl<R> ReadBytesExt for R
Source§fn read_u8(&mut self) -> Result<u8, Error>
fn read_u8(&mut self) -> Result<u8, Error>
Source§fn read_i8(&mut self) -> Result<i8, Error>
fn read_i8(&mut self) -> Result<i8, Error>
Source§fn read_u16<T>(&mut self) -> Result<u16, Error>where
T: ByteOrder,
fn read_u16<T>(&mut self) -> Result<u16, Error>where
T: ByteOrder,
Source§fn read_i16<T>(&mut self) -> Result<i16, Error>where
T: ByteOrder,
fn read_i16<T>(&mut self) -> Result<i16, Error>where
T: ByteOrder,
Source§fn read_u24<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
fn read_u24<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
Source§fn read_i24<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
fn read_i24<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
Source§fn read_u32<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
fn read_u32<T>(&mut self) -> Result<u32, Error>where
T: ByteOrder,
Source§fn read_i32<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
fn read_i32<T>(&mut self) -> Result<i32, Error>where
T: ByteOrder,
Source§fn read_u48<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
fn read_u48<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
Source§fn read_i48<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
fn read_i48<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
Source§fn read_u64<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
fn read_u64<T>(&mut self) -> Result<u64, Error>where
T: ByteOrder,
Source§fn read_i64<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
fn read_i64<T>(&mut self) -> Result<i64, Error>where
T: ByteOrder,
Source§fn read_u128<T>(&mut self) -> Result<u128, Error>where
T: ByteOrder,
fn read_u128<T>(&mut self) -> Result<u128, Error>where
T: ByteOrder,
Source§fn read_i128<T>(&mut self) -> Result<i128, Error>where
T: ByteOrder,
fn read_i128<T>(&mut self) -> Result<i128, Error>where
T: ByteOrder,
Source§fn read_uint<T>(&mut self, nbytes: usize) -> Result<u64, Error>where
T: ByteOrder,
fn read_uint<T>(&mut self, nbytes: usize) -> Result<u64, Error>where
T: ByteOrder,
Source§fn read_int<T>(&mut self, nbytes: usize) -> Result<i64, Error>where
T: ByteOrder,
fn read_int<T>(&mut self, nbytes: usize) -> Result<i64, Error>where
T: ByteOrder,
Source§fn read_uint128<T>(&mut self, nbytes: usize) -> Result<u128, Error>where
T: ByteOrder,
fn read_uint128<T>(&mut self, nbytes: usize) -> Result<u128, Error>where
T: ByteOrder,
Source§fn read_int128<T>(&mut self, nbytes: usize) -> Result<i128, Error>where
T: ByteOrder,
fn read_int128<T>(&mut self, nbytes: usize) -> Result<i128, Error>where
T: ByteOrder,
Source§fn read_f32<T>(&mut self) -> Result<f32, Error>where
T: ByteOrder,
fn read_f32<T>(&mut self) -> Result<f32, Error>where
T: ByteOrder,
Source§fn read_f64<T>(&mut self) -> Result<f64, Error>where
T: ByteOrder,
fn read_f64<T>(&mut self) -> Result<f64, Error>where
T: ByteOrder,
Source§fn read_u16_into<T>(&mut self, dst: &mut [u16]) -> Result<(), Error>where
T: ByteOrder,
fn read_u16_into<T>(&mut self, dst: &mut [u16]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_u32_into<T>(&mut self, dst: &mut [u32]) -> Result<(), Error>where
T: ByteOrder,
fn read_u32_into<T>(&mut self, dst: &mut [u32]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_u64_into<T>(&mut self, dst: &mut [u64]) -> Result<(), Error>where
T: ByteOrder,
fn read_u64_into<T>(&mut self, dst: &mut [u64]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_u128_into<T>(&mut self, dst: &mut [u128]) -> Result<(), Error>where
T: ByteOrder,
fn read_u128_into<T>(&mut self, dst: &mut [u128]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_i8_into(&mut self, dst: &mut [i8]) -> Result<(), Error>
fn read_i8_into(&mut self, dst: &mut [i8]) -> Result<(), Error>
Source§fn read_i16_into<T>(&mut self, dst: &mut [i16]) -> Result<(), Error>where
T: ByteOrder,
fn read_i16_into<T>(&mut self, dst: &mut [i16]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_i32_into<T>(&mut self, dst: &mut [i32]) -> Result<(), Error>where
T: ByteOrder,
fn read_i32_into<T>(&mut self, dst: &mut [i32]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_i64_into<T>(&mut self, dst: &mut [i64]) -> Result<(), Error>where
T: ByteOrder,
fn read_i64_into<T>(&mut self, dst: &mut [i64]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_i128_into<T>(&mut self, dst: &mut [i128]) -> Result<(), Error>where
T: ByteOrder,
fn read_i128_into<T>(&mut self, dst: &mut [i128]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_f32_into<T>(&mut self, dst: &mut [f32]) -> Result<(), Error>where
T: ByteOrder,
fn read_f32_into<T>(&mut self, dst: &mut [f32]) -> Result<(), Error>where
T: ByteOrder,
Source§fn read_f32_into_unchecked<T>(&mut self, dst: &mut [f32]) -> Result<(), Error>where
T: ByteOrder,
fn read_f32_into_unchecked<T>(&mut self, dst: &mut [f32]) -> Result<(), Error>where
T: ByteOrder,
read_f32_into
instead