static int getSignedInt ( ByteBuf buf , int offset ) { return ( buf . getByte ( offset ) & 0xFF ) << 24 | ( buf . getByte ( offset + 1 ) & 0xFF ) << 16 | ( buf . getByte ( offset + 2 ) & 0xFF ) << 8 | buf . getByte ( offset + 3 ) & 0xFF ; }
Reads a big - endian signed integer from the buffer .