enc

Function read_optional_byte

Source
pub fn read_optional_byte<R>(r: &mut R) -> Result<Option<u8>, Error>
where R: Read,
Expand description

Reads an optional byte from the Read.

Returns None when the Read has no more data.