Skip to main content

copy_string_into_buffer

Function copy_string_into_buffer 

Source
pub fn copy_string_into_buffer(
    s: &str,
    buffer: &mut [u8],
    offset: usize,
) -> usize
Expand description

Copy a string’s bytes into a buffer at the given offset. Returns bytes written.