pub fn read_byte_and_check_continuation<R: Read>(
stream: &mut R,
) -> Result<(u8, bool)>Expand description
Reads a byte from the given stream and checks if there are more bytes to continue reading.
The return value includes two parts: an unsigned integer formed by the first 7 bits of the byte, and a boolean value indicating whether more bytes need to be read.
§Parameters
stream: The stream from which the byte is read.
§Returns
Returns an io::Result containing a tuple. The first element is the value of the first 7 bits,
and the second element is a boolean indicating whether more bytes need to be read.