-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PointerSize and use nint/nuint #209
Comments
Having |
Not sure what you mean, nuint maps to UIntPtr and nint maps to IntrPtr, so there is no special magin under the hood. |
If you plan to keep PointerSize then we need UPointerSize with ulong and map SIZE_T to that instance. |
Yeah, I know that |
Hi @andrew-boyarshin ,
Recent .NET language added nint and nuint support, I would suggest to remove PointerSize and map to those directly, same applies to SharpGen.Runtime.COM.
It is supported in ClangSharp as well:
intptr_t -> nint
ptrdiff_t -> nint
size_t -> nuint
uintptr_t -> nuint
SIZE_T -> nuint
SSIZE_T -> nint
The text was updated successfully, but these errors were encountered: