Searched refs:putBytes (Results 1 - 25 of 33) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/hash/
H A DAbstractByteHasherTest.java36 hasher.putBytes(new byte[]{2, 3, 4, 5, 6});
38 hasher.putBytes(new byte[]{});
39 hasher.putBytes(new byte[]{8});
75 new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash());
97 hasher.putBytes(new byte[8], -1, 4);
102 hasher.putBytes(new byte[8], 0, 16);
107 hasher.putBytes(new byte[8], 0, -1);
H A DAbstractStreamingHasherTest.java47 sink.putBytes(new byte[] { 2, 3, 4, 5, 6 });
49 sink.putBytes(new byte[] {});
50 sink.putBytes(new byte[] { 8 });
96 new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash());
122 sink.putBytes(new byte[8], -1, 4);
126 sink.putBytes(new byte[8], 0, 16);
130 sink.putBytes(new byte[8], 0, -1);
H A DHashingOutputStreamTest.java58 EasyMock.expect(hasher.putBytes(buf, 0, buf.length)).andReturn(hasher).once();
70 EasyMock.expect(hasher.putBytes(buf, 0, 3)).andReturn(hasher).once();
H A DSipHashFunctionTest.java173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong());
175 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong());
H A DMurmur3Hash128Test.java55 assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash());
H A DFunnelsTest.java46 verify(primitiveSink).putBytes(new byte[] { 4, 3, 2, 1 });
136 verify(sink).putBytes(bytes);
137 verify(sink).putBytes(bytes, 1, 2);
H A DHashingInputStreamTest.java63 EasyMock.expect(hasher.putBytes(aryEq(testBytes), eq(0), eq(testBytes.length)))
80 EasyMock.expect(hasher.putBytes(aryEq(Arrays.copyOfRange(testBytes, 0, 3)), eq(0), eq(3)))
101 EasyMock.expect(hasher.putBytes(aryEq(expectedBytes), eq(0), eq(4)))
H A DHashTestUtils.java160 sink.putBytes(value);
171 sink.putBytes(value);
494 hashFunction.newHasher(size).putBytes(bytes).hash());
498 hashFunction.newHasher(size).putBytes(bytes, off, len).hash());
/external/guava/guava/src/com/google/common/hash/
H A DHasher.java40 * newHasher().putByte(b1).putBytes(new byte[] { b2, b3 }).hash()
41 * newHasher().putBytes(new byte[] { b1, b2, b3 }).hash()}</pre>
55 @Override Hasher putBytes(byte[] bytes); method in interface:Hasher
56 @Override Hasher putBytes(byte[] bytes, int off, int len); method in interface:Hasher
86 * Equivalent to {@code putBytes(charSequence.toString().getBytes(charset))}.
H A DPrimitiveSink.java43 PrimitiveSink putBytes(byte[] bytes); method in interface:PrimitiveSink
56 PrimitiveSink putBytes(byte[] bytes, int off, int len); method in interface:PrimitiveSink
H A DAbstractStreamingHashFunction.java57 return newHasher().putBytes(input).hash();
61 return newHasher().putBytes(input, off, len).hash();
144 public final Hasher putBytes(byte[] bytes) { method in class:AbstractStreamingHashFunction.AbstractStreamingHasher
145 return putBytes(bytes, 0, bytes.length);
149 public final Hasher putBytes(byte[] bytes, int off, int len) { method in class:AbstractStreamingHashFunction.AbstractStreamingHasher
150 return putBytes(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN));
153 private Hasher putBytes(ByteBuffer readBuffer) { method in class:AbstractStreamingHashFunction.AbstractStreamingHasher
H A DAbstractCompositeHashFunction.java62 @Override public Hasher putBytes(byte[] bytes) {
64 hasher.putBytes(bytes);
69 @Override public Hasher putBytes(byte[] bytes, int off, int len) {
71 hasher.putBytes(bytes, off, len);
H A DAbstractHasher.java47 return putBytes(charSequence.toString().getBytes(charset));
H A DHashingOutputStream.java56 hasher.putBytes(bytes, off, len);
H A DAbstractByteHasher.java68 public Hasher putBytes(byte[] bytes) { method in class:AbstractByteHasher
75 public Hasher putBytes(byte[] bytes, int off, int len) { method in class:AbstractByteHasher
H A DFunnels.java47 into.putBytes(from);
241 sink.putBytes(bytes);
245 sink.putBytes(bytes, off, len);
H A DHashingInputStream.java67 hasher.putBytes(bytes, off, numOfBytesRead);
H A DAbstractNonStreamingHashFunction.java91 public Hasher putBytes(byte[] bytes) { method in class:AbstractNonStreamingHashFunction.BufferingHasher
101 public Hasher putBytes(byte[] bytes, int off, int len) { method in class:AbstractNonStreamingHashFunction.BufferingHasher
/external/opencv3/modules/imgcodecs/src/
H A Dbitstrm.hpp157 void putBytes( const void* buffer, int count );
H A Dgrfmt_pxm.cpp417 strm.putBytes( buffer, (int)strlen(buffer) );
446 strm.putBytes( (channels > 1 || depth > 8) ? buffer : (const char*)data, fileStep );
505 strm.putBytes( buffer, (int)(ptr - buffer) );
H A Dgrfmt_bmp.cpp527 strm.putBytes( fmtSignBmp, (int)strlen(fmtSignBmp) );
550 strm.putBytes( palette, sizeof(palette));
556 strm.putBytes( img.ptr(y), width );
558 strm.putBytes( zeropad, fileStep - width );
H A Dgrfmt_sunras.cpp407 strm.putBytes( fmtSignSunRas, (int)strlen(fmtSignSunRas) );
417 strm.putBytes( img.ptr(y), fileStep );
H A Dgrfmt_tiff.cpp744 strm.putBytes( fmtSignTiffII, 4 );
778 strm.putBytes( channels > 1 ? buffer : img.ptr(y), fileStep );
H A Dbitstrm.cpp462 void WLByteStream::putBytes( const void* buffer, int count ) function in class:cv::WLByteStream
/external/skia/src/ports/
H A DSkImageDecoder_CG.cpp255 procs.putBytes = consumer_put;

Completed in 287 milliseconds

12