Skip to content

mdz_wchar_create_attached

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

Create empty "wide"-character string with Capacity == 1 (for 0-terminator), Size == 0 and Length == 0.
Memory for wchar structure starts at position pStart. Size of internal wchar structure (it is usually bigger than mdz_Wchar!) is returned in pSize.

struct mdz_Wchar* mdz_wchar_create_attached(const void* pStart, size_t nAreaSizeBytes, size_t* pOutSize);

Parameter Description
pStart memory start position of wchar structure
nAreaSizeBytes size of available memory from pStart in bytes. Should be large enough for internal wchar structure
pOutSize returned actual size of allocated internal wchar structure in bytes, may be NULL if not needed
Return Description
NULL if library is not initialized with mdz_string_init() call
NULL if sizeof(wchar_t) != 2 and sizeof(wchar_t) != 4 (see description in file header)
NULL if pStart == NULL or pSize == NULL
NULL if size in nSize is smaller than size of internal wchar structure
Result pointer to string for use in other mdz_wchar functions. Normally it equals to pStart
mdz_wchar 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