#[no_mangle]
pub const extern "C" fn nstd_string_cap(
    string: &NSTDString<'_>
) -> NSTDUInt
Available on crate feature 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.