wstring2string

Converts a wstring to a string using a buffer provided by the user. To get the buffer requirements call stringSize on your source buffer.

@nogc nothrow pure
char[]
wstring2string
(
in wchar[] src
,
char* dst
)

Parameters

src wchar[]

The UTF-8 string to convert.

dst char*

The destination buffer for the conversion.

Return Value

Type: char[]

The part of the destination buffer used for the conversion as a wchar[]. A terminating zero is appended, so the result.ptr can be passed into Windows APIs.

Meta