mdz_utf16_reserve - maxdz-gmbh/mdz_unicode GitHub Wiki
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) |