mdz_ansi_create_attached - maxdz-gmbh/mdz_string GitHub Wiki

Create empty string with Capacity and Size 0. Memory for mdz_Ansi structure starts at position pStart. Size of internal ansi structure (it is usually bigger than mdz_Ansi) is returned in pSize.

struct mdz_Ansi* mdz_ansi_create_attached(const void* pStart, size_t nAreaSizeBytes, size_t* pOutSize);

Parameter Description
pStart memory start position of mdz_Ansi structure
nAreaSizeBytes size of available memory from pStart in bytes. Should be large enough for internal Ansi structure
pOutSize returned actual size of placed internal ansi structure in bytes, may be NULL if not needed
Return Description
NULL if library is not initialized with mdz_string_init() call
NULL if pStart == NULL or pSize == NULL
NULL if size in nSize is smaller than size of internal ansi structure
Result pointer to string for use in other mdz_Ansi functions. Normally it equals to pStart
mdz_ansi API Reference is generated using mdzApiRefGenerator.
⚠️ **GitHub.com Fallback** ⚠️