Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/hash/
DAbstractByteHasherTest.java36 hasher.putBytes(new byte[]{2, 3, 4, 5, 6}); in testBytes()
38 hasher.putBytes(new byte[]{}); in testBytes()
39 hasher.putBytes(new byte[]{8}); in testBytes()
75 new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash()); in testString()
97 hasher.putBytes(new byte[8], -1, 4); in testCorrectExceptions()
102 hasher.putBytes(new byte[8], 0, 16); in testCorrectExceptions()
107 hasher.putBytes(new byte[8], 0, -1); in testCorrectExceptions()
DAbstractStreamingHasherTest.java47 sink.putBytes(new byte[] { 2, 3, 4, 5, 6 }); in testBytes()
49 sink.putBytes(new byte[] {}); in testBytes()
50 sink.putBytes(new byte[] { 8 }); in testBytes()
96 new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash()); in testString()
122 sink.putBytes(new byte[8], -1, 4); in testCorrectExceptions()
126 sink.putBytes(new byte[8], 0, 16); in testCorrectExceptions()
130 sink.putBytes(new byte[8], 0, -1); in testCorrectExceptions()
DHashingInputStreamTest.java63 EasyMock.expect(hasher.putBytes(aryEq(testBytes), eq(0), eq(testBytes.length))) in testRead_putByteArray()
80 EasyMock.expect(hasher.putBytes(aryEq(Arrays.copyOfRange(testBytes, 0, 3)), eq(0), eq(3))) in testRead_putByteArrayAtPos()
101 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()
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()
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()
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.java57 return newHasher().putBytes(input).hash(); in hashBytes()
61 return newHasher().putBytes(input, off, len).hash(); in hashBytes()
144 public final Hasher putBytes(byte[] bytes) { in putBytes() method in AbstractStreamingHashFunction.AbstractStreamingHasher
145 return putBytes(bytes, 0, bytes.length); in putBytes()
149 public final Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() method in AbstractStreamingHashFunction.AbstractStreamingHasher
150 return putBytes(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN)); in putBytes()
153 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()
241 sink.putBytes(bytes); in write()
245 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.java91 public Hasher putBytes(byte[] bytes) { in putBytes() method in AbstractNonStreamingHashFunction.BufferingHasher
101 public Hasher putBytes(byte[] bytes, int off, int len) { in putBytes() method in AbstractNonStreamingHashFunction.BufferingHasher
DAbstractHasher.java47 return putBytes(charSequence.toString().getBytes(charset)); in putString()
DHashingOutputStream.java56 hasher.putBytes(bytes, off, len); in write()
DHashingInputStream.java67 hasher.putBytes(bytes, off, numOfBytesRead); in read()
/external/skia/src/ports/
DSkImageEncoder_CG.cpp43 procs.putBytes = consumer_put; in SkStreamToCGDataConsumer()
/external/skqp/src/ports/
DSkImageEncoder_CG.cpp43 procs.putBytes = consumer_put; in SkStreamToCGDataConsumer()
/external/skia/experimental/tools/
DcoreGraphicsPdf2png.cpp54 procs.putBytes = [](void* f, const void* buf, size_t s) { in main()
/external/skqp/experimental/tools/
DcoreGraphicsPdf2png.cpp54 procs.putBytes = [](void* f, const void* buf, size_t s) { in main()