Function decode_max_power

Source
pub async fn decode_max_power<P>(
    max_size: usize,
    producer: &mut P,
) -> Result<u64, DecodeError<P::Error>>
where P: BulkProducer<Item = u8>,
Expand description

Decode a u64 from n-width bytestring, where n is the least number of bytes needed to represent max_size.