diagnostics_log_encoding::parse

Function parse_record

Source
pub fn parse_record(buf: &[u8]) -> Result<(Record<'_>, &[u8]), ParseError>
Expand description

Attempt to parse a diagnostic record from the head of this buffer, returning the record and any unused portion of the buffer if successful.