parse_timeline_buf

Function parse_timeline_buf 

Source
pub fn parse_timeline_buf(bytes: &[u8]) -> Vec<TimelineEvent>
Expand description

Parse a contiguous buffer of timeline records into a vec of TimelineEvent values, in encounter order.

bytes is the concatenation of N timeline_event records. Trailing bytes that don’t form a full record are silently dropped (a torn final record at ringbuf wrap is the typical case; the consumer’s next drain picks up the remainder).