Skip to main content

try_read_debug_log_into

Function try_read_debug_log_into 

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

Strictly decode PRINTF records into caller-owned storage.

Clears out, then reuses its allocation.

ยงErrors

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