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