gxINT16 Integer Type


Topics:

OverviewOverview
Conditional Directives
Type Definitions
Functions


Overview

The gxINT16 class is used to represent 16 bit-signed integers independently of the operating system or hardware platform used. It works by separating 16-bit values into two separate byte values and reordering the bytes lowest-order to highest-order. A gxINT16 type has a base 10 positive limit of 32,767 and a negative limit of 32,768.


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 gxINT16 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: gxINT16, __LWORD__, __ULWORD__, __WORD__, __SWORD__, __ULWORD__, __USWORD__, __SBYTE__, and __UBYTE__.


End Of Document