Skip to main content

skip_value

Function skip_value 

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

Advance past the MessagePack value starting at offset, returning the offset of the next value. Returns None if the buffer is truncated or nesting exceeds MAX_DEPTH.

This is the performance-critical primitive. It never allocates.