Skip to main content

write_flat_op_str_bytes

Function write_flat_op_str_bytes 

Source
pub fn write_flat_op_str_bytes(
    out: &mut Vec<u8>,
    text: &str,
    max_bytes: u32,
) -> bool
Expand description

Appends [byte_len: u32 LE, utf8_bytes..., zero_pad...] to out.

Returns false (leaving out unchanged) if text.len() exceeds max_bytes.