#[no_mangle]
pub extern "C" fn nstd_string_cap(string: &NSTDString) -> NSTDUInt
Available on crate feature nstd_string only.
Expand description

Returns a string’s capacity.

This is the max number of bytes the string can contain without reallocating.

Parameters:

  • const NSTDString *string - The string.

Returns

NSTDUInt cap - The string’s capacity.