decode_to_slice

Function decode_to_slice 

Source
pub(crate) fn decode_to_slice(bytes: &[u8]) -> Result<&[u8]>
Expand description

Decode an unsigned integer into a big endian byte slice with all leading zeroes removed.

Returns a byte array of the requested size containing a big endian integer.