Wonkey types string fromwstring
wonkey:wonkey.types.String.FromWString
Function FromWString:String( buf:Void Ptr,bufSize:Int )#
Function FromWString:String( buf:Void Ptr )#
Creates a string from a null terminated WString.
If bufSize
is specified, the WString may contain null characters which will be included in the string.
If bufSize
is not specified, the WString must be correctly null terminated or Bad Things Will Happen.
Parameters | |
---|---|
buf |
buf The memory buffer containing the WString. |
bufSize |
bufSize The size of the memory buffer in bytes. |