Connected: An Internet Encyclopedia
RFC 1832 - 3.1 Integer

Top: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1832
Up: 3. XDR DATA TYPES
Prev: 3. XDR DATA TYPES
Next: 3.2. Unsigned Integer

### 3.1 Integer

An XDR signed integer is a 32-bit datum that encodes an integer in the range [-2147483648,2147483647]. The integer is represented in two's complement notation. The most and least significant bytes are 0 and 3, respectively. Integers are declared as follows:

             int identifier;

               (MSB)                   (LSB)
             +-------+-------+-------+-------+
             |byte 0 |byte 1 |byte 2 |byte 3 |                      INTEGER
             +-------+-------+-------+-------+
             <------------32 bits------------>

Next: 3.2. Unsigned Integer

Connected: An Internet Encyclopedia
RFC 1832 - 3.1 Integer