Reads a single byte from the stream and returns it or an error.
Reads two bytes from the stream and returns them in read-order or an error.
Reads three bytes from the stream and returns them in read-order or an error.
Reads four bytes from the stream and returns them in read-order or an error.
Reads up-to the number of bytes required to fill buf or returns an error.
Reads exactly the number of bytes required to fill be provided buffer or returns an error.
Reads bytes from a stream into a supplied buffer until a byte patter is matched on an
aligned byte boundary. Returns a mutable slice to the valid region of the provided buffer.
Ignores the specified number of bytes from the stream or returns an error.
Gets the position of the stream.
Reads a single unsigned byte from the stream and returns it or an error.
Reads a single signed byte from the stream and returns it or an error.
Reads two bytes from the stream and interprets them as an unsigned 16-bit little-endian
integer or returns an error.
Reads two bytes from the stream and interprets them as an signed 16-bit little-endian
integer or returns an error.
Reads two bytes from the stream and interprets them as an unsigned 16-bit big-endian
integer or returns an error.
Reads two bytes from the stream and interprets them as an signed 16-bit big-endian
integer or returns an error.
Reads three bytes from the stream and interprets them as an unsigned 24-bit little-endian
integer or returns an error.
Reads three bytes from the stream and interprets them as an signed 24-bit little-endian
integer or returns an error.
Reads three bytes from the stream and interprets them as an unsigned 24-bit big-endian
integer or returns an error.
Reads three bytes from the stream and interprets them as an signed 24-bit big-endian
integer or returns an error.
Reads four bytes from the stream and interprets them as an unsigned 32-bit little-endian
integer or returns an error.
Reads four bytes from the stream and interprets them as an signed 32-bit little-endian
integer or returns an error.
Reads four bytes from the stream and interprets them as an unsigned 32-bit big-endian
integer or returns an error.
Reads four bytes from the stream and interprets them as a signed 32-bit big-endian
integer or returns an error.
Reads eight bytes from the stream and interprets them as an unsigned 64-bit little-endian
integer or returns an error.
Reads eight bytes from the stream and interprets them as an signed 64-bit little-endian
integer or returns an error.
Reads eight bytes from the stream and interprets them as an unsigned 64-bit big-endian
integer or returns an error.
Reads eight bytes from the stream and interprets them as an signed 64-bit big-endian
integer or returns an error.
Reads four bytes from the stream and interprets them as a 32-bit little-endian IEEE-754
floating-point value.
Reads four bytes from the stream and interprets them as a 32-bit big-endian IEEE-754
floating-point value.
Reads four bytes from the stream and interprets them as a 64-bit little-endian IEEE-754
floating-point value.
Reads four bytes from the stream and interprets them as a 64-bit big-endian IEEE-754
floating-point value.
Reads up-to the number of bytes requested, and returns a boxed slice of the data or an
error.
Reads exactly the number of bytes requested, and returns a boxed slice of the data or an
error.
Reads bytes from the stream into a supplied buffer until a byte pattern is matched. Returns
a mutable slice to the valid region of the provided buffer.