|
Sound Open Firmware
|
Formatted text message record within a debug stream. More...
#include <src/include/user/debug_stream_text_msg.h>

Data Fields | |
| struct debug_stream_record | hdr |
| Stream record header specifying size_words. | |
| char | msg [] |
| Length-delimited text message, padded to 32-bit boundary. | |
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.
| struct debug_stream_record debug_stream_text_msg::hdr |
Stream record header specifying size_words.
| char debug_stream_text_msg::msg[] |
Length-delimited text message, padded to 32-bit boundary.