Sound Open Firmware
Loading...
Searching...
No Matches
debug_stream_text_msg Struct Reference

Formatted text message record within a debug stream. More...

#include <src/include/user/debug_stream_text_msg.h>

Collaboration diagram for debug_stream_text_msg:

Data Fields

struct debug_stream_record hdr
 Stream record header specifying size_words.
 
char msg []
 Length-delimited text message, padded to 32-bit boundary.
 

Detailed Description

Formatted text message record within a debug stream.

The record payload is length-delimited by hdr.size_words. The text data in msg[] is ASCII/UTF-8 encoded and padded with trailing NUL bytes to a 32-bit word boundary. Receivers should calculate maximum payload capacity as (hdr.size_words * sizeof(uint32_t) - sizeof(struct debug_stream_record)) and stop parsing at either the capacity limit or the first internal NUL terminator.

Field Documentation

◆ hdr

struct debug_stream_record debug_stream_text_msg::hdr

Stream record header specifying size_words.

◆ msg

char debug_stream_text_msg::msg[]

Length-delimited text message, padded to 32-bit boundary.


The documentation for this struct was generated from the following file: