Home
last modified time | relevance | path

Searched refs:putBytes (Results 1 – 21 of 21) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DAbstractByteHasherTest.java37 hasher.putBytes(new byte[]{2, 3, 4, 5, 6}); in testBytes()
39 hasher.putBytes(new byte[]{}); in testBytes()
40 hasher.putBytes(new byte[]{8}); in testBytes()
76 new TestHasher().putBytes(s.getBytes(UTF_16LE.name())).hash()); in testString()
98 hasher.putBytes(new byte[8], -1, 4); in testCorrectExceptions()
103 hasher.putBytes(new byte[8], 0, 16); in testCorrectExceptions()
108 hasher.putBytes(new byte[8], 0, -1); in testCorrectExceptions()
DAbstractStreamingHasherTest.java48 sink.putBytes(new byte[] { 2, 3, 4, 5, 6 }); in testBytes()
50 sink.putBytes(new byte[] {}); in testBytes()
51 sink.putBytes(new byte[] { 8 }); in testBytes()
97 new Sink(4).putBytes(s.getBytes(UTF_16LE.name())).hash()); in testString()
123 sink.putBytes(new byte[8], -1, 4); in testCorrectExceptions()
127 sink.putBytes(new byte[8], 0, 16); in testCorrectExceptions()
131 sink.putBytes(new byte[8], 0, -1); in testCorrectExceptions()
DHashingInputStreamTest.java62 EasyMock.expect(hasher.putBytes(aryEq(testBytes), eq(0), eq(testBytes.length))) in testRead_putByteArray()
79 EasyMock.expect(hasher.putBytes(aryEq(new byte[] {'y', 'a', 'm'}), eq(0), eq(3))) in testRead_putByteArrayAtPos()
100 EasyMock.expect(hasher.putBytes(aryEq(expectedBytes), eq(0), eq(4))) in testRead_putByteArrayOutOfBound()
DFunnelsTest.java46 verify(primitiveSink).putBytes(new byte[] { 4, 3, 2, 1 }); in testForBytes()
136 verify(sink).putBytes(bytes); in testAsOutputStream()
137 verify(sink).putBytes(bytes, 1, 2); in testAsOutputStream()
DHashingOutputStreamTest.java58 EasyMock.expect(hasher.putBytes(buf, 0, buf.length)).andReturn(hasher).once(); in testWrite_putByteArray()
70 EasyMock.expect(hasher.putBytes(buf, 0, 3)).andReturn(hasher).once(); in testWrite_putByteArrayAtPos()
DSipHashFunctionTest.java173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
175 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
DHashTestUtils.java160 sink.putBytes(value); in PUT_BYTES()
171 sink.putBytes(value); in PUT_BYTES_INT_INT()
494 hashFunction.newHasher(size).putBytes(bytes).hash()); in assertHashBytesEquivalence()
498 hashFunction.newHasher(size).putBytes(bytes, off, len).hash()); in assertHashBytesEquivalence()
DMurmur3Hash128Test.java55 assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); in assertHash()
/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHashFunction.java65 return newHasher().putBytes(input).hash(); in hashBytes()
69 return newHasher().putBytes(input, off, len).hash(); in hashBytes()
152 public final Hasher putBytes(byte[] bytes) { in putBytes() method in AbstractStreamingHashFunction.AbstractStreamingHasher
153 return putBytes(bytes, 0, bytes.length); in putBytes()
157 public final Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() method in AbstractStreamingHashFunction.AbstractStreamingHasher
158 return putBytes(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN)); in putBytes()
161 private Hasher putBytes(ByteBuffer readBuffer) { in putBytes() method in AbstractStreamingHashFunction.AbstractStreamingHasher
DAbstractCompositeHashFunction.java62 @Override public Hasher putBytes(byte[] bytes) { in newHasher() method
64 hasher.putBytes(bytes); in newHasher()
69 @Override public Hasher putBytes(byte[] bytes, int off, int len) { in newHasher() method
71 hasher.putBytes(bytes, off, len); in newHasher()
DPrimitiveSink.java43 PrimitiveSink putBytes(byte[] bytes); in putBytes() method
56 PrimitiveSink putBytes(byte[] bytes, int off, int len); in putBytes() method
DHasher.java55 @Override Hasher putBytes(byte[] bytes); in putBytes() method
56 @Override Hasher putBytes(byte[] bytes, int off, int len); in putBytes() method
DFunnels.java47 into.putBytes(from); in funnel()
252 sink.putBytes(bytes); in write()
256 sink.putBytes(bytes, off, len); in write()
DAbstractByteHasher.java68 public Hasher putBytes(byte[] bytes) { in putBytes() method in AbstractByteHasher
75 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() method in AbstractByteHasher
DAbstractNonStreamingHashFunction.java104 public Hasher putBytes(byte[] bytes) { in putBytes() method in AbstractNonStreamingHashFunction.BufferingHasher
114 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() method in AbstractNonStreamingHashFunction.BufferingHasher
DHashingOutputStream.java56 hasher.putBytes(bytes, off, len); in write()
DAbstractHasher.java57 return putBytes(charSequence.toString().getBytes(charset.name())); in putString()
DHashingInputStream.java67 hasher.putBytes(bytes, off, numOfBytesRead); in read()
/external/skia/src/ports/
DSkImageDecoder_CG.cpp238 procs.putBytes = consumer_put; in SkStreamToCGDataConsumer()
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...