public short readShort ( ) throws KryoException { require ( 2 ) ; int p = position ; position = p + 2 ; return ( short ) ( ( buffer [ p ] & 0xFF ) | ( ( buffer [ p + 1 ] & 0xFF ) ) << 8 ) ; }
Reads a 2 byte short .