mdz_utf8_reserve - maxdz-gmbh/mdz_unicode GitHub Wiki

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

mdz_bool mdz_utf8_reserve(struct mdz_Utf8* pUtf8, size_t nNewCapacity);

Parameter Description
pUtf8 pointer to string returned by mdz_utf8_create() or mdz_utf8_create_attached()
nNewCapacity new capacity in bytes to reserve
Return Description
mdz_false if pUtf8 == NULL
mdz_false if memory allocation failed (MDZ_ERROR_ALLOCATION)
mdz_true reservation succeeded, or nNewCapacity <= Capacity (MDZ_ERROR_CAPACITY)
mdz_utf8 API Reference is generated using mdzApiRefGenerator.
⚠️ **GitHub.com Fallback** ⚠️