Skip to content

Instantly share code, notes, and snippets.

@Varriount
Created October 11, 2013 20:59
Show Gist options
  • Save Varriount/6941963 to your computer and use it in GitHub Desktop.
Save Varriount/6941963 to your computer and use it in GitHub Desktop.
Data type lengths for nimrod
# Windows 64 Bit Types
sizeof(pointer): 8
sizeof(cstring): 8
sizeof(cint): 4
sizeof(clong): 4
sizeof(cuint): 4
sizeof(culong): 8
sizeof(int): 8
sizeof(uint): 8
sizeof(int16): 2
sizeof(uint16): 2
sizeof(int32): 4
sizeof(uint32): 4
sizeof(int64): 8
sizeof(uint64): 8
# Windows 32 Bit Types
sizeof(pointer): 4
sizeof(cstring): 4
sizeof(cint): 4
sizeof(clong): 4
sizeof(cuint): 4
sizeof(culong): 4
sizeof(int): 4
sizeof(uint): 4
sizeof(int16): 2
sizeof(uint16): 2
sizeof(int32): 4
sizeof(uint32): 4
sizeof(int64): 8
sizeof(uint64): 8
# Tables
-------------------------------
Types | 32 | 64 | Equivalent |
-------------------------------|
pointer | 4 | 8 | No |
-------------------------------|
cstring | 4 | 8 | No |
-------------------------------|
cint | 4 | 4 | Yes |
-------------------------------|
clong | 4 | 4 | Yes |
-------------------------------|
cuint | 4 | 4 | Yes |
-------------------------------|
culong | 4 | 8 | No |
-------------------------------|
int | 4 | 8 | No |
-------------------------------|
uint | 4 | 8 | No |
-------------------------------|
int16 | 2 | 2 | Yes |
-------------------------------|
uint16 | 2 | 2 | Yes |
-------------------------------|
int32 | 4 | 4 | Yes |
-------------------------------|
uint32 | 4 | 4 | Yes |
-------------------------------|
int64 | 8 | 8 | Yes |
-------------------------------|
uint64 | 8 | 8 | Yes |
-------------------------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment