System.LongWord

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type LongWord = { built-in type };

C++

typedef unsigned             LongWord;         // 0..4294967295

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.pas
sysmac.h
System System

Description

Platform-dependent unsigned integer type.

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 with the range [0 .. 4294967295] (0 through 232-1).
Note: 32-bit platforms include 32-bit Windows and Android.
  • On 64-bit POSIX platforms (Android, iOS, Linux, and macOS), LongWord is an 8-byte unsigned integer with the range [0 .. 18446744073709551615] (0 through 264-1).
Note: If you want to use a 4-byte unsigned integer type, use FixedUInt or Cardinal.

See Also