Skip to content

mdz_utf16_reserve

Maksym Dzyubenko edited this page Feb 7, 2024 · 1 revision

Reserve nNewCapacity bytes for UTF-16 string. Size and Length do not change.

mdz_bool mdz_utf16_reserve(struct mdz_Utf16* pUtf16, size_t nNewCapacity);

Parameter Description
pUtf16 pointer to string returned by mdz_utf16_create() or mdz_utf16_create_attached()
nNewCapacity new capacity in UTF-16 characters to reserve
Return Description
mdz_false if pUtf16 == NULL
mdz_false if memory allocation failed (MDZ_ERROR_ALLOCATION)
mdz_true reservation succeeded, or nNewCapacity <= Capacity (MDZ_ERROR_CAPACITY)
mdz_utf16 API Reference is generated using mdzApiRefGenerator.

mdz_string functions

mdz_ansi functions

mdz_utf8 functions

mdz_wchar functions

mdz_utf16 functions

mdz_utf32 functions

mdz_string API Reference is generated using mdzApiRefGenerator.
Clone this wiki locally