You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
I need to decode wide character (wchar_t) strings. The size of wchar_t can vary between platforms; on Windows, for example, it's 2 bytes (UTF-16) , but on macOS, it's 4 (UTF-32).
At the moment, there's no easy way to decode these characters properly. It's be great if something like a WChar type was created, and there was a function on Pointer<WChar> to generate a string.
The text was updated successfully, but these errors were encountered:
dart-lang/sdk#42563 covers the wchar_t type representation in Dart, but once this is resolved, a utility function to handle string conversions should still be implemented in package:ffi. Can this issue stay open?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I need to decode wide character (
wchar_t
) strings. The size ofwchar_t
can vary between platforms; on Windows, for example, it's 2 bytes (UTF-16) , but on macOS, it's 4 (UTF-32).At the moment, there's no easy way to decode these characters properly. It's be great if something like a
WChar
type was created, and there was a function onPointer<WChar>
to generate a string.The text was updated successfully, but these errors were encountered: