Function CSTL_u32string_construct

Source
pub unsafe extern "C" fn CSTL_u32string_construct(
    new_instance: *mut CSTL_UTF32StringVal,
)
Expand description

Initializes the string, but does not allocate any memory.

An initialized string can be trivially destroyed without leaks as long as its owned string is small enough to be inline (smaller than CSTL_string_alloc_mask).

Re-initializing a string with a backing memory allocation will leak the old memory allocation.