|
1 | 1 | '' Integer types |
2 | | -dim b as byte '' 1 byte |
3 | | -dim sh as short '' 2 bytes |
4 | | -dim i as integer '' 4 bytes (32bit type) |
5 | | -dim l as long '' 4 bytes on Windows, 4/8 bytes elsewhere depending on pointer size |
6 | | -dim ll as longint '' 8 bytes (64bit type) |
| 2 | +dim b as byte '' 8 bit integer (sizeof(byte ) = 1) |
| 3 | +dim sh as short '' 16 bit integer (sizeof(short ) = 2) |
| 4 | +dim l as long '' 32 bit integer (sizeof(long ) = 4) |
| 5 | +dim ll as longint '' 64 bit integer (sizeof(longint) = 8) |
| 6 | +dim i as integer '' 32 or 64 bit integer, depends on system (like pointers) |
7 | 7 |
|
8 | 8 | '' Unsigned versions |
9 | 9 | dim ub as ubyte |
10 | 10 | dim ush as ushort |
11 | | -dim ui as uinteger |
12 | 11 | dim ul as ulong |
13 | 12 | dim ull as ulongint |
| 13 | +dim ui as uinteger |
14 | 14 |
|
15 | 15 | '' Floating point types |
16 | 16 | dim f as single '' 32bit float |
17 | 17 | dim d as double '' 64bit float |
18 | 18 |
|
19 | 19 | '' Strings |
20 | | -dim s as string '' variable-length single-byte string (up to 2 GB, may contain |
21 | | - '' nulls, implicitly null-terminated for C compatibility) |
| 20 | +dim s as string '' variable-length single-byte string (up to 2 GB on 32bit and |
| 21 | + '' more on 64bit, may contain nulls, implicitly null-terminated |
| 22 | + '' for C compatibility) |
22 | 23 |
|
23 | 24 | dim fixstr as string * 5 '' fixed-length string (implicitly null-terminated) |
24 | 25 |
|
25 | 26 | dim z as zstring * 5+1 '' null-terminated fixed-length string |
26 | 27 |
|
27 | 28 | dim w as wstring * 5+1 '' same, but for Unicode, depends on system: |
28 | | - '' UTF-16 on Windows: 2 byte units, 1 or 2 units (2 or 4 bytes) per Unicode character |
| 29 | + '' UTF-16 on Windows: 2 byte units, 1 or 2 units (2 or |
| 30 | + '' 4 bytes) per Unicode character |
29 | 31 | '' UTF-32 on Linux: 4 bytes per Unicode character |
30 | 32 |
|
31 | 33 | '' User-defined types (UDTs): structures, classes |
|
0 commit comments