Function CSTL_string_reserve

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

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

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