Function CSTL_wstring_reserve

Source
pub unsafe extern "C" fn CSTL_wstring_reserve(
    instance: CSTL_WideStringRef,
    new_capacity: usize,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

If new_capacity > CSTL_wstring_capacity(instance), reallocates and expands the underlying array storage.

If new_capacity exceeds CSTL_wstring_max_size() this function has no effect and returns false, otherwise it returns true.