public long readLong ( ) throws KryoException { require ( 8 ) ; byte [ ] buffer = this . buffer ; int p = position ; position = p + 8 ; return buffer [ p ] & 0xFF // | ( buffer [ p + 1 ] & 0xFF ) << 8 // | ( buffer [ p + 2 ] & 0xFF ) << 16 // | ( long ) ( buffer [ p + 3 ] & 0xFF ) << 24 // | ( long ) ( buffer [ p + 4 ] & 0xFF ) << 32 // | ( long ) ( buffer [ p + 5 ] & 0xFF ) << 40 // | ( long ) ( buffer [ p + 6 ] & 0xFF ) << 48 // | ( long ) buffer [ p + 7 ] << 56 ; }
Reads an 8 byte long .