pub trait CountBytesBE {
    fn count_from_bytes_be(buf: &[u8]) -> Result<usize, Error>;
fn count_bytes_be(&self) -> usize; fn count_from_bytes_be_more(buf: &[u8]) -> Result<Option<usize>, Error> { ... } }
Expand description

Count how many bytes to read from a byte slice for a type and calculate how many bytes the serialization would contain. In big endian.

Required methods

Return how many bytes from buf would be required to deserialize Self in big endian.

Return the number of bytes that the serialization would require.

Provided methods

Return how many bytes from buf would be required to deserialize Self in big endian, where if there are not enough bytes in buf to know how many bytes would be required, you will receive None or otherwise Some(nbytes).

Implementations on Foreign Types

Implementors