Function CSTL_string_construct

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