- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 50 for outBytes (0.2 sec)
-
android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
int numOfByteRead = in.read(buf, 0, buf.length); assertEquals(4, numOfByteRead); for (int i = 0; i < testBytes.length; i++) { assertEquals(testBytes[i], buf[i]); } verify(hasher).putBytes(testBytes, 0, testBytes.length); verify(hashFunction).newHasher(); verifyNoMoreInteractions(hashFunction, hasher); } public void testRead_putByteArrayAtPos() throws Exception {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
public Hasher putByte(byte b) { update(b); return this; } @Override @CanIgnoreReturnValue public Hasher putBytes(byte[] bytes) { checkNotNull(bytes); update(bytes); return this; } @Override @CanIgnoreReturnValue public Hasher putBytes(byte[] bytes, int off, int len) { checkPositionIndexes(off, off + len, bytes.length); update(bytes, off, len); return this; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/PrimitiveSink.java
PrimitiveSink putByte(byte b); /** * Puts an array of bytes into this sink. * * @param bytes a byte array * @return this instance */ @CanIgnoreReturnValue PrimitiveSink putBytes(byte[] bytes); /** * Puts a chunk of an array of bytes into this sink. {@code bytes[off]} is the first byte written, * {@code bytes[off + len - 1]} is the last. * * @param bytes a byte array
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
ByteBuffer bigEndian = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN); assertEquals( hashFunction.newHasher().putBytes(littleEndian).hash(), hashFunction.newHasher().putBytes(bigEndian).hash()); assertEquals(ByteOrder.LITTLE_ENDIAN, littleEndian.order()); assertEquals(ByteOrder.BIG_ENDIAN, bigEndian.order()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 25.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java
assertHash(expected, murmur3_32_fixed().hashBytes(string.getBytes(charset))); assertHash(expected, murmur3_32().newHasher().putBytes(string.getBytes(charset)).hash()); assertHash(expected, murmur3_32_fixed().newHasher().putBytes(string.getBytes(charset)).hash()); } private boolean allBmp(String string) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 08 13:56:22 GMT 2021 - 8.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
try { transporter.put(putTask); } catch (Exception e) { throw new RuntimeException(e); } } @Override public void putBytes(byte[] source, URI relativeTarget) { requireNonNull(source, "source is null"); try { Path tempPath = null; try {
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 5.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
try { transporter.put(putTask); } catch (Exception e) { throw new RuntimeException(e); } } @Override public void putBytes(byte[] source, URI relativeTarget) { requireNonNull(source, "source is null"); try { Path tempPath = null; try {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/SipHashFunctionTest.java
assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong()); assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong()); assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Sun May 05 18:02:35 GMT 2019 - 6.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java
} @Benchmark int hasher(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37; for (int i = 0; i < reps; i++) { result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0]; } return result; } @Benchmark int hashFunction(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashFunction.java
*/ HashCode hashLong(long input); /** * Shortcut for {@code newHasher().putBytes(input).hash()}. The implementation <i>might</i> * perform better than its longhand equivalent, but should not perform worse. */ HashCode hashBytes(byte[] input); /** * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementation
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue May 25 18:22:59 GMT 2021 - 10.9K bytes - Viewed (0)