Searched refs:Hasher (Results 1 - 25 of 37) sorted by relevance

12

/external/guava/guava/src/com/google/common/hash/
H A DHasher.java34 * <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 DAbstractCompositeHashFunction.java25 * {@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 DAbstractHasher.java22 * {@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 DAbstractByteHasher.java31 * 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 DAbstractNonStreamingHashFunction.java34 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 DAbstractStreamingHashFunction.java28 * {@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 DHashFunction.java33 * 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 DHashingOutputStream.java33 private final Hasher hasher;
H A DChecksumHashFunction.java49 public Hasher newHasher() {
59 * Hasher that updates a checksum.
H A DHashingInputStream.java33 private final Hasher hasher;
H A DMessageDigestHashFunction.java81 @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 DSipHashFunction.java67 @Override public Hasher newHasher() {
H A DHashing.java427 HashCode makeHash(Hasher[] hashers) {
430 for (Hasher hasher : hashers) {
H A DCrc32cHashFunction.java31 public Hasher newHasher() {
/external/lzma/CPP/7zip/UI/Common/
H A DHashCalc.cpp109 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 DHashCalc.h27 CMyComPtr<IHasher> Hasher; member in struct:CHasherState
/external/guava/guava-tests/test/com/google/common/hash/
H A DAbstractNonStreamingHashFunctionTest.java40 List<Hasher> hashers = ImmutableList.of(
83 Hasher h1 = new NonStreamingVersion().newHasher();
84 Hasher h2 = new NonStreamingVersion().newHasher();
101 public Hasher newHasher() {
H A DHashingOutputStreamTest.java31 private Hasher hasher;
37 hasher = EasyMock.createMock(Hasher.class);
H A DMessageDigestHashFunctionTest.java62 Hasher sha1 = Hashing.sha1().newHasher();
76 Hasher sha1 = Hashing.sha1().newHasher();
H A DMurmur3Hash32Test.java62 Hasher hasher = murmur3_32(seed).newHasher();
H A DMurmur3Hash128Test.java72 Hasher hasher = murmur3_128(seed).newHasher();
H A DAbstractStreamingHasherTest.java156 Hasher controlSink = control.newHasher(1024);
158 Iterable<Hasher> sinksAndControl =
164 // Hasher#hash will throw an ISE.
166 for (Hasher hasher : sinksAndControl) {
H A DHashingInputStreamTest.java35 private Hasher hasher;
42 hasher = EasyMock.createMock(Hasher.class);
/external/chromium-trace/catapult/third_party/coverage/coverage/
H A Dhtml.py16 from coverage.misc import CoverageException, Hasher, isolate_module namespace
123 m = Hasher()
169 m = Hasher()
H A Dmisc.py166 class Hasher(object): class in inherits:object

Completed in 219 milliseconds

12