gxINT32 Integer Type


Topics:

OverviewOverview
Conditional Directives
Type Definitions
Functions


Overview

The gxINT32 integer type is used to represent 32-bit signed integers independently of the operating system or hardware platform used. gxINT32 types are implemented to overcome the big and little endian byte ordering problems encountered when writing integer values to a common database file or device accessed by several different types of machines. It works by separating a 32-bit value into four separate byte values and reordering the bytes lowest-order to highest-order. A gxINT32 type has a base 10 positive limit of 2,147,483,647 and a negative limit of 2,147,483,648.


Conditional Directives

__USE_NATIVE_INT_TYPES__ - This conditional directive allows the use of native integer types in place of platform interoperable integer types for debugging purposes only.


Functions

The gxINT32 class is designed to function in the same manner as built-in integer types and includes a full complement of arithmetic and comparison operator overloads. Each operator is overloaded for the following data types: gxINT32, __LWORD__, __ULWORD__, __WORD__, __SWORD__, __ULWORD__, __USWORD__, __SBYTE__, and __UBYTE__.


End Of Document