-
Notifications
You must be signed in to change notification settings - Fork 0
mdz_utf32_create_attached
Maksym Dzyubenko edited this page Feb 7, 2024
·
1 revision
Create empty UTF-32
string with Capacity
== 1 (for 0-terminator), Size
== 0 and Length
== 0.
Memory for utf32 structure starts at position pStart
. Size
of internal utf32 structure (it is usually bigger than mdz_Utf32
!) is returned in pSize.
struct mdz_Utf32* mdz_utf32_create_attached(
const void* pStart,
enum mdz_endianness enEndianness,
size_t nAreaSizeBytes,
size_t* pOutSize);
Parameter | Description |
---|---|
pStart |
memory start position of utf32 structure |
enEndianness |
endianness of string. Should be MDZ_ENDIAN_LITTLE or MDZ_ENDIAN_BIG
|
nAreaSizeBytes |
size of available memory from pStart in bytes. Should be large enough for internal utf32 structure |
pOutSize |
returned actual size of allocated internal utf32 structure in bytes, may be NULL if not needed |
Return | Description |
---|---|
NULL |
if library is not initialized with mdz_string_init() call |
NULL |
if invalid enEndianness
|
NULL |
if pStart == NULL or pSize == NULL
|
NULL |
if size in nSize is smaller than size of internal utf32 structure |
Result | pointer to string for use in other mdz_utf32 functions. Normally it equals to pStart
|
mdz_utf32 API Reference is generated using mdzApiRefGenerator.
mdz_string functions
- Init functions
mdz_ansi functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- Find functions
- Miscellaneous functions
mdz_utf8 functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_utf8_insertUtf8_async
- mdz_utf8_insertUtf8_string_async
- mdz_utf8_insertAnsi_async
- mdz_utf8_insertAnsi_string_async
- mdz_utf8_insertWchar_async
- mdz_utf8_insertWchar_string_async
- mdz_utf8_insertUtf16_async
- mdz_utf8_insertUtf16_string_async
- mdz_utf8_insertUtf32_async
- mdz_utf8_insertUtf32_string_async
mdz_wchar functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_wchar_insertWchar_async
- mdz_wchar_insertWchar_string_async
- mdz_wchar_insertAnsi_async
- mdz_wchar_insertAnsi_string_async
- mdz_wchar_insertUtf8_async
- mdz_wchar_insertUtf8_string_async
- mdz_wchar_insertUtf16_async
- mdz_wchar_insertUtf16_string_async
- mdz_wchar_insertUtf32_async
- mdz_wchar_insertUtf32_string_async
mdz_utf16 functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_utf16_insertUtf16_async
- mdz_utf16_insertUtf16_string_async
- mdz_utf16_insertAnsi_async
- mdz_utf16_insertAnsi_string_async
- mdz_utf16_insertWchar_async
- mdz_utf16_insertWchar_string_async
- mdz_utf16_insertUtf8_async
- mdz_utf16_insertUtf8_string_async
- mdz_utf16_insertUtf32_async
- mdz_utf16_insertUtf32_string_async
mdz_utf32 functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_utf32_insertUtf32_async
- mdz_utf32_insertUtf32_string_async
- mdz_utf32_insertAnsi_async
- mdz_utf32_insertAnsi_string_async
- mdz_utf32_insertWchar_async
- mdz_utf32_insertWchar_string_async
- mdz_utf32_insertUtf8_async
- mdz_utf32_insertUtf8_string_async
- mdz_utf32_insertUtf16_async
- mdz_utf32_insertUtf16_string_async