Function CSTL_u16string_data

Source
pub unsafe extern "C" fn CSTL_u16string_data(
    instance: CSTL_UTF16StringRef,
) -> *mut char16_t
Expand description

Returns a pointer to the underlying null-terminated array serving as character storage.

If CSTL_u16string_empty(instance) == true the pointer is still valid and points to a single null character.

The range [CSTL_u16string_data(instance), CSTL_u16string_data(instance) + size] is always valid.

The array may be mutated through the returned pointer excluding the past-the-end null terminator.