parse_timeline_record

Function parse_timeline_record 

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

Parse a single 40-byte ringbuf record.

Returns None when the input is shorter than the on-the-wire size — the caller has truncated buffer / partial read and should stop draining at this slot.