Function CSTL_wstring_construct

Source
pub unsafe extern "C" fn CSTL_wstring_construct(
    new_instance: *mut CSTL_WideStringVal,
)
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.