All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.storemate.shared.hash.BlockHasher32 Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package com.fasterxml.storemate.shared.hash;

public abstract class BlockHasher32
{
    public final static int DEFAULT_SEED = 0;

    public final int hash(byte[] data) {
        return hash(DEFAULT_SEED, data, 0, data.length);
    }
    
    public int hash(int seed, byte[] data) {
        return hash(seed, data, 0, data.length);
    }

    public final int hash(byte[] data, int offset, int len) {
        return hash(DEFAULT_SEED, data, offset, len);
    }

    public abstract int hash(int seed, byte[] data, int offset, int len);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy