readInt32BigEndian method

int readInt32BigEndian()

Implementation

int readInt32BigEndian()
{
    int value = readInt32();
    int b1 = 0xFF & (value >> 0);
    int b2 = 0xFF & (value >> 8);
    int b3 = 0xFF & (value >> 16);
    int b4 = 0xFF & (value >> 24);
    return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4;
}