//! UTF-8 string encoder for the IR wire format.
use put_len_u32;
use crateMAX_STRING_LEN;
/// Append a bounded length-prefixed UTF-8 string.
///
/// # Errors
///
/// Returns an actionable error when the string exceeds the wire-format maximum
/// length or the length cannot fit in the encoded field.