Skip to main content

pm_string_init

Function pm_string_init 

Source
pub unsafe extern "C" fn pm_string_init(
    string: *mut pm_string_t,
    source: *const u8,
    length: usize,
)
Expand description

Initialize a string that views the given bytes. The bytes are not copied, so they must remain valid for as long as the string is in use.

@param string The string to initialize. @param source The start of the bytes. @param length The number of bytes.