public void updateLongLE(long value) {
        finished = false;
        switch (partialPos) {
            case 0:
                partialK1 = value;
                break;
            case 8:
                partialK2 = value;
                break;
            default:
                throw new IllegalStateException("Cannot mix long with other alignments than 8: " + partialPos);
        }

        partialPos += 8;
        if (partialPos == 16) {
            applyKs(partialK1, partialK2);
            partialPos = 0;
        }
        length += 8;
    }
public void updateLongLE ( long value ) { finished = false ; switch ( partialPos ) { case 0 : partialK1 = value ; break ; case 8 : partialK2 = value ; break ; default : throw new IllegalStateException ( "Cannot mix long with other alignments than 8: " + partialPos ) ; } partialPos += 8 ; if ( partialPos == 16 ) { applyKs ( partialK1 , partialK2 ) ; partialPos = 0 ; } length += 8 ; }
Special update method to hash long values very efficiently using Java's native little endian (LE) byte order.
Note, that you cannot mix this with other (previous) hash updates, because it only supports 8-bytes alignment.