pub const fn decode_duration(
buf: &[u8],
) -> Result<(NonZeroUsize, Duration), ConstDecodeError>Available on crate feature
chrono_0_4 only.Expand description
Decodes a Duration in LEB128 encoded format from the buffer.
Returns the bytes readed and the decoded value if successful.