Function decode_duration

Source
pub const fn decode_duration(
    buf: &[u8],
) -> Result<(usize, Duration), DecodeError>
Expand description

Decodes a Duration in LEB128 encoded format from the buffer.

Returns the bytes readed and the decoded value if successful.