Skip to main content

decode_frame

Function decode_frame 

Source
pub fn decode_frame(buf: &[u8]) -> Option<(&str, &[u8])>
Expand description

Decode one DMA frame. Returns (track_name, payload), or None if the buffer is malformed (too short, length prefix past the end, or a non-UTF-8 track name).