/external/guava/guava/src/com/google/common/hash/ |
H A D | Hasher.java | 34 * <p><b>Warning:</b> Chunks of data that are put into the {@link Hasher} are not delimited. 53 public interface Hasher extends PrimitiveSink { interface in inherits:PrimitiveSink 54 @Override Hasher putByte(byte b); 55 @Override Hasher putBytes(byte[] bytes); 56 @Override Hasher putBytes(byte[] bytes, int off, int len); 57 @Override Hasher putShort(short s); 58 @Override Hasher putInt(int i); 59 @Override Hasher putLong(long l); 64 @Override Hasher putFloat(float f); 69 @Override Hasher putDoubl [all...] |
H A D | AbstractCompositeHashFunction.java | 25 * {@code Hasher} objects of the delegate hash functions, and in the end, they are used by 26 * {@linkplain #makeHash(Hasher[])} that constructs the final {@code HashCode}. 41 * Constructs a {@code HashCode} from the {@code Hasher} objects of the functions. Each of them 46 /* protected */ abstract HashCode makeHash(Hasher[] hashers); 49 public Hasher newHasher() { 50 final Hasher[] hashers = new Hasher[functions.length]; 54 return new Hasher() { 55 @Override public Hasher putByte(byte b) { 56 for (Hasher hashe [all...] |
H A D | AbstractHasher.java | 22 * {@link #putString(CharSequence, Charset)} as prescribed by {@link Hasher}. 26 abstract class AbstractHasher implements Hasher { 27 @Override public final Hasher putBoolean(boolean b) { 31 @Override public final Hasher putDouble(double d) { 35 @Override public final Hasher putFloat(float f) { 39 @Override public Hasher putUnencodedChars(CharSequence charSequence) { 46 @Override public Hasher putString(CharSequence charSequence, Charset charset) {
|
H A D | AbstractByteHasher.java | 31 * Abstract {@link Hasher} that handles converting primitives to bytes using a scratch {@code 62 public Hasher putByte(byte b) { 68 public Hasher putBytes(byte[] bytes) { 75 public Hasher putBytes(byte[] bytes, int off, int len) { 84 private Hasher update(int bytes) { 94 public Hasher putShort(short s) { 100 public Hasher putInt(int i) { 106 public Hasher putLong(long l) { 112 public Hasher putChar(char c) { 118 public <T> Hasher putObjec [all...] |
H A D | AbstractNonStreamingHashFunction.java | 34 public Hasher newHasher() { 39 public Hasher newHasher(int expectedInputSize) { 50 Hasher hasher = newHasher(len * 2); 74 * In-memory stream-based implementation of Hasher. 85 public Hasher putByte(byte b) { 91 public Hasher putBytes(byte[] bytes) { 101 public Hasher putBytes(byte[] bytes, int off, int len) { 107 public Hasher putShort(short s) { 114 public Hasher putInt(int i) { 123 public Hasher putLon [all...] |
H A D | AbstractStreamingHashFunction.java | 28 * {@link Hasher#hash}. 64 @Override public Hasher newHasher(int expectedInputSize) { 70 * A convenience base class for implementors of {@code Hasher}; handles accumulating data 144 public final Hasher putBytes(byte[] bytes) { 149 public final Hasher putBytes(byte[] bytes, int off, int len) { 153 private Hasher putBytes(ByteBuffer readBuffer) { 179 public final Hasher putUnencodedChars(CharSequence charSequence) { 187 public final Hasher putByte(byte b) { 194 public final Hasher putShort(short s) { 201 public final Hasher putCha [all...] |
H A D | HashFunction.java | 33 * multibyte values (via {@link Hasher}), but this is merely a convenience; these are 92 * {@link Hasher}. Obtain a new hasher from the hash function using {@link #newHasher}, 93 * "push" the relevant data into it using methods like {@link Hasher#putBytes(byte[])}, 94 * and finally ask for the {@code HashCode} when finished using {@link Hasher#hash}. (See 101 * <p>Hasher accepts primitive data types, but can also accept any Object of type {@code 103 * from that object into the function. (See {@linkplain Hasher#putObject an example} of 135 * Hasher} instance that is ready to receive data. Example: <pre> {@code 143 Hasher newHasher(); 151 Hasher newHasher(int expectedInputSize);
|
H A D | HashingOutputStream.java | 33 private final Hasher hasher;
|
H A D | ChecksumHashFunction.java | 49 public Hasher newHasher() { 59 * Hasher that updates a checksum.
|
H A D | HashingInputStream.java | 33 private final Hasher hasher;
|
H A D | MessageDigestHashFunction.java | 81 @Override public Hasher newHasher() { 115 * Hasher that updates a message digest. 147 checkState(!done, "Cannot re-use a Hasher after calling hash() on it");
|
H A D | SipHashFunction.java | 67 @Override public Hasher newHasher() {
|
H A D | Hashing.java | 427 HashCode makeHash(Hasher[] hashers) { 430 for (Hasher hasher : hashers) {
|
H A D | Crc32cHashFunction.java | 31 public Hasher newHasher() {
|
/external/lzma/CPP/7zip/UI/Common/ |
H A D | HashCalc.cpp | 109 h.Hasher = hasher;
124 h.Hasher->Init();
133 Hashers[i].Hasher->Update(data, size);
177 h.Hasher->Final(h.Digests[0]);
182 h.Hasher->Init();
183 h.Hasher->Update(pre, sizeof(pre));
184 h.Hasher->Update(h.Digests[0], h.DigestSize);
190 h.Hasher->Update(temp, 2);
194 h.Hasher->Final(tempDigest);
|
H A D | HashCalc.h | 27 CMyComPtr<IHasher> Hasher;
member in struct:CHasherState
|
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | AbstractNonStreamingHashFunctionTest.java | 40 List<Hasher> hashers = ImmutableList.of( 83 Hasher h1 = new NonStreamingVersion().newHasher(); 84 Hasher h2 = new NonStreamingVersion().newHasher(); 101 public Hasher newHasher() {
|
H A D | HashingOutputStreamTest.java | 31 private Hasher hasher; 37 hasher = EasyMock.createMock(Hasher.class);
|
H A D | MessageDigestHashFunctionTest.java | 62 Hasher sha1 = Hashing.sha1().newHasher(); 76 Hasher sha1 = Hashing.sha1().newHasher();
|
H A D | Murmur3Hash32Test.java | 62 Hasher hasher = murmur3_32(seed).newHasher();
|
H A D | Murmur3Hash128Test.java | 72 Hasher hasher = murmur3_128(seed).newHasher();
|
H A D | AbstractStreamingHasherTest.java | 156 Hasher controlSink = control.newHasher(1024); 158 Iterable<Hasher> sinksAndControl = 164 // Hasher#hash will throw an ISE. 166 for (Hasher hasher : sinksAndControl) {
|
H A D | HashingInputStreamTest.java | 35 private Hasher hasher; 42 hasher = EasyMock.createMock(Hasher.class);
|
/external/chromium-trace/catapult/third_party/coverage/coverage/ |
H A D | html.py | 16 from coverage.misc import CoverageException, Hasher, isolate_module namespace 123 m = Hasher() 169 m = Hasher()
|
H A D | misc.py | 166 class Hasher(object): class in inherits:object
|