dlt_core::parse

Function dlt_zero_terminated_string

Source
pub fn dlt_zero_terminated_string(
    s: &[u8],
    size: usize,
) -> Result<(&[u8], &str), DltParseError>
Expand description

Extracts the string in a byte sequence up to the \0 termination character

In various places within the DLT message, there can be strings that are terminated with a \0.