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
Gerd Heber edited this page Feb 10, 2016
·
3 revisions
Architecture Independent API Types
Architecture Dependent API Types
API Type
.NET Type
size_t
System.IntPtr
ssize_t
System.IntPtr
Strictly speaking, ssize_t is the signed version of size_t, and would be System.Int32 or System.Int64 on 32-bit or 64-bit architectures, respectively. In order to support AnyCPU builds, representing both as System.IntPtr seems to be worth the inconvenience of having to convert pointers to integers. (And the number of API calls with ssize_t arguments or returns is rather small.)