pub fn serialize_string<T: Into<String>>(value: T, buffer: &mut Vec<u8>)
Expand description
Appends the string representation of the given value to the buffer.
ยงExamples
let mut buffer = Vec::new();
blt_utils::serialize_string("Hello World!", &mut buffer);
assert_eq!(buffer.as_slice(), [12, 0, 0, 0, 0, 0, 0, 0, 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]);