pub fn message_string_get<'a>(
dest: &'a mut [u8],
src: &[u8],
default_src: Option<&str>,
) -> Result<&'a str>Expand description
Copies a string from a fixed-size C-style char array within a message to a Rust buffer.
This is a safe wrapper around CFE_SB_MessageStringGet. It correctly handles
unterminated strings from the source buffer and ensures the destination is null-terminated.
ยงArguments
dest: The mutable byte buffer to copy the string into.src: The fixed-size array from the message.default_src: An optional default string to use if the source string is empty.