It's hard to justify why this kind of cheat sheet is necessary. We should all know this information by heart. Unfortunately I realize that sometimes I'm not 100% sure and I have to look it up. If it happens again, then I'll come back here!
The size of the different types is in bytes.
win64 win32
-------------------------------
bool 1 1
BYTE 1 1
char 1 1
-------------------------------
SHORT 2 2
wchar_t 2 2
WORD 2 2
-------------------------------
BOOL 4 4
DWORD 4 4
float 4 4
HRESULT 4 4
int 4 4
long 4 4
unsigned int 4 4
unsigned long 4 4
-------------------------------
HANDLE 8 4
INT_PTR 8 4
LONG_PTR 8 4
ULONG_PTR 8 4
void* 8 4
-------------------------------
__int64 8 8
double 8 8
LONGLONG 8 8
ULONGLONG 8 8
-------------------------------
FLOAT128 16 16
-------------------------------
No comments:
Post a Comment