public int readInt ( ) throws KryoException { require ( 4 ) ; byte [ ] buffer = this . buffer ; int p = this . position ; this . position = p + 4 ; return buffer [ p ] & 0xFF // | ( buffer [ p + 1 ] & 0xFF ) << 8 // | ( buffer [ p + 2 ] & 0xFF ) << 16 // | ( buffer [ p + 3 ] & 0xFF ) << 24 ; }
Reads a 4 byte int .