pub fn copy_string_into_buffer( s: &str, buffer: &mut [u8], offset: usize, ) -> usize
Copy a string’s bytes into a buffer at the given offset. Returns bytes written.