Skip to main content

read_varint

Function read_varint 

Source
pub(crate) fn read_varint<'encoding>(
    reader: &mut impl BytesLike<'encoding>,
) -> Result<u64, EpeeError>
Expand description

Read a VarInt per EPEE’s definition.

This does not require the VarInt is canonically encoded. It may be malleated to have a larger than necessary encoding.