pub const fn decode_duration( buf: &[u8], ) -> Result<(usize, Duration), DecodeError>
Decodes a Duration in LEB128 encoded format from the buffer.
Duration
Returns the bytes readed and the decoded value if successful.