Function parse_zerocopy

Source
pub fn parse_zerocopy<'a, T>(buffer: &'a mut [u8]) -> Result<T, CommonError>
where T: Deserialize<'a>,
Expand description

Zero-copy JSON parsing using borrowed data

This is the most efficient parsing method for hot paths when you can work with borrowed data. The lifetime ’a is tied to the input buffer.