embedded_jsonrpc::varint

Function decode

Source
pub fn decode(buf: &[u8]) -> Option<(usize, usize)>
Expand description

Decodes a varint from the provided buffer. Returns the decoded value and the number of bytes read, or None if the buffer is incomplete.