- последна редакция на: 2018-03-12
Variable Data Types
Integer Data Types
Type Description Pointer Byte 8-bit unsigned integer
Platform type Range Bytes 32-bit platforms [ 0..255 ] 1 64-bit platforms [ 0..255 ] 1 PByte ShortInt 8-bit signed integer
Platform type Range Bytes 32-bit platforms [ -128..127 ] 1 64-bit platforms [ -128..127 ] 1 PShortInt Word 16-bit unsigned integer
Platform type Range Bytes 32-bit platforms [ 0..65535 ] 2 64-bit platforms [ 0..65535 ] 2 PWord SmallInt 16-bit signed integer
Platform type Range Bytes 32-bit platforms [ -32768..32767 ] 2 64-bit platforms [ -32768..32767 ] 2 PSmallInt Integer 32-bit signed integer
Platform type Range Bytes 32-bit platforms [ -2147483648..2147483647 ] 4 64-bit platforms [ -2147483648..2147483647 ] 4 PInteger Cardinal 32-bit unsigned integer.
The size of Cardinal is 32 bits across all 64-bit and 32-bit platforms.
Platform type Range Bytes 32-bit platforms [ 0..4294967295 ] 4 64-bit platforms [ 0..4294967295 ] 4 PCardinal FixedUInt 32-bit unsigned integer. The size of FixedUInt is 32 bits across all 64-bit and 32-bit platforms.
- On Windows platforms (32-bit and 64-bit Windows), FixedUInt is equivalent to the LongWord type.
- On OSX32, 32-bit iOS, 64-bit iOS, and Android platforms, FixedUInt is equivalent to the Cardinal type.
Platform type Range Bytes 32-bit platforms [ 0 .. 4294967295 ] 4 64-bit platforms [ 0 .. 4294967295 ] 4 PFixedUInt LongWord LongWord represents a subset of the natural numbers. LongWord size and range depend on the target platform:
- On 32-bit platforms and 64-bit Windows platforms, LongWord is a 4-byte unsigned integer.
- On 64-bit POSIX platforms (iOS and Linux), LongWord is an 8-byte unsigned integer.
Note: If you want to use a 4-byte unsigned integer type, use FixedUInt or Cardinal.Platform type Range Bytes 32-bit platforms [ 0..4294967295 ] 4 64-bit Windows platforms [ 0..4294967295 ] 4 64-bit POSIX platforms (iOS and Linux) [0 .. 18446744073709551615] 8 PLongWord FixedInt Defines a 32-bit signed integer type. The size of FixedInt is 32 bits across all 64-bit and 32-bit platforms.
- On Windows platforms (32-bit and 64-bit Windows), FixedInt is equivalent to the LongInt type.
- On OSX32, 32-bit iOS, 64-bit iOS, and Android platforms, FixedInt is equivalent to the Integer type.Platform type Range Bytes 32-bit platforms [ -2147483648 .. 2147483647 ] 4 64-bit platforms [ -2147483648 .. 2147483647 ] 4 PFixedInt LongInt LongInt represents a subset of the natural numbers. LongInt size and range depend on the target platform:
- 32-bit signed integer (32-bit Windows, OSX32, 32-bit iOS, and Android platforms).
- 64-bit signed integer (64-bit iOS and 64-bit Linux platforms).
Note: If you want to use a 4-byte signed integer type, use Integer or FixedInt.Platform type Range Bytes 32-bit platforms [ -2147483648 .. 2147483647 ] 4 64-bit Windows platforms [ -2147483648 .. 2147483647 ] 4 64-bit POSIX platforms (iOS and Linux) [-9223372036854775808 .. 9223372036854775807] 8 PLongint UInt64 64-bit unsigned integer. The size of UInt64 is 64 bits across all 64-bit and 32-bit platforms.
Platform type Range Bytes 32-bit platforms [ 0..263 -1 ] 8 64-bit platforms [ 0..263 -1 ] 8 PUInt64 Int64 64-bit signed integer. The size of Int64 is 64 bits across all 64-bit and 32-bit platforms.
Platform type Range Bytes 32-bit platforms [ -263 .. 263 -1 ] 8 64-bit platforms [ -263 .. 263 -1 ] 8 PInt64 NativeInt Defines a platform-dependent signed integer.NativeInt represents a subset of the integer numbers.
The range of NativeInt depends on the current platform:
- On 32-bit platforms, NativeInt is equivalent to the Integer type.
- On 64-bit platforms, NativeInt is equivalent to the Int64 type.
Note: The size of NativeInt is equivalent to the size of the pointer on the current platform. 4 bytes on 32-bit platforms and 8 bytes on 64-bit platforms.Platform type Range Bytes 32-bit platforms [ -2147483648..2147483647 ] 4 64-bit platforms [ -263 .. 263 -1 ] 8 PNativeInt
