[][src]Function defmt_decoder::decode

pub fn decode<'t>(
    bytes: &[u8],
    table: &'t Table
) -> Result<(Frame<'t>, usize), DecodeError>
This is supported on unstable only.

decode the data sent by the device using the previosuly stored metadata

  • bytes: contains the data sent by the device that logs. contains the [log string index, timestamp, optional fmt string args]
  • table: contains the mapping of log string indices to their format strings, as well as the log level.