Skip to main content

try_read_debug_log

Function try_read_debug_log 

Source
pub fn try_read_debug_log(
    debug_bytes: &[u8],
) -> Result<Vec<DebugRecord>, ProtocolError>
Expand description

Strictly decode PRINTF records out of the debug-log buffer.

ยงErrors

Returns ProtocolError when the buffer is not word-aligned, too short for the cursor word, or the cursor points at a partial record.