Skip to content

mdz_ansi_reserve

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

Reserve nNewCapacity items for string. String Size does not change. Reservation is not made if m_pData is attached using mdz_ansi_attachData()

mdz_bool mdz_ansi_reserve(struct mdz_Ansi* pAnsi, size_t nNewCapacity);

Parameter Description
pAnsi pointer to string returned by mdz_ansi_create() or mdz_ansi_create_attached()
nNewCapacity new capacity in items to reserve
Return Description
mdz_false if pAnsi == NULL
mdz_false if memory allocation failed (MDZ_ERROR_ALLOCATION)
mdz_false if nNewCapacity > Capacity and m_pData is attached using mdz_ansi_attachData() (MDZ_ERROR_ATTACHED)
mdz_true if nNewCapacity <= Capacity (MDZ_ERROR_CAPACITY)
mdz_true reservation succeeded
mdz_ansi 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