wstring2stringSize

Calculates the required buffer size in bytes for a wstring to char[] conversion. Room for a terminating '\0' is included.

@nogc nothrow @safe pure
size_t
wstring2stringSize
(
in wchar[] src
)

Parameters

src wchar[]

The source string.

Return Value

Type: size_t

The maximum byte count the source string could require, including the terminating '\0'.

See Also

wstring2string

Meta