fromWString function
Implementation
String fromWString(Pointer ptr, {int? len}) {
if(len == null) { len = wstringLen(ptr); }
if (Platform.isWindows) {
return String.fromCharCodes(ptr.cast<Uint16>().asTypedList(len));
} else {
return String.fromCharCodes(ptr.cast<Uint32>().asTypedList(len));
}
}