Function massa_execution_worker::context::truncate_string
source ยท pub(crate) fn truncate_string(string: String, max_byte_len: usize) -> StringExpand description
Truncates a string to a maximum byte length, ensuring it remains valid UTF-8 in the process.