- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 67 for hashFunction (0.28 sec)
-
subprojects/core/src/main/java/org/gradle/internal/hash/ChecksumHasher.java
import java.io.InputStream; class ChecksumHasher implements FileHasher { private final HashFunction hashFunction; public ChecksumHasher(HashFunction hashFunction) { this.hashFunction = hashFunction; } @Override public HashCode hash(File file) { try { PrimitiveHasher hasher = hashFunction.newPrimitiveHasher(); byte[] buffer = new byte[4096]; int len;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 22 15:39:10 UTC 2020 - 1.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashFunctionEnum.java
// These can probably be removed sooner or later. ; private final HashFunction hashFunction; private HashFunctionEnum(HashFunction hashFunction) { this.hashFunction = hashFunction; } HashFunction getHashFunction() { return hashFunction; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 08 13:56:22 UTC 2021 - 1.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy
private TestFile hashFile(TestFile file, HashFunction hashFunction) { def hashFile = getHashFile(file, hashFunction) def hash = hashFunction.hashFile(file) hashFile.text = hash.toZeroPaddedString(hashFunction.hexDigits) return hashFile } private TestFile getHashFile(TestFile file, HashFunction hashFunction) { def algorithm = hashFunction.algorithm.toLowerCase(Locale.ROOT).replaceAll('-', '')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
platforms/software/maven/src/main/java/org/gradle/api/publish/maven/internal/publisher/AbstractMavenPublisher.java
} } } private void publishChecksum(ExternalResourceName destination, File content, HashFunction hashFunction) { byte[] checksum = createChecksumFile(content, hashFunction);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 07 12:20:56 UTC 2024 - 15.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
// Helpers + main private byte runHashFunction(int reps, HashFunction hashFunction) { byte result = 0x01; // Trick the JVM to prevent it from using the hash function non-polymorphically result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; for (int i = 0; i < reps; i++) { result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; } return result;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 13 16:19:15 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/HashingAlgorithmsBenchmark.java
private final HashFunction hashFunction; public GuavaProcessorFactory(HashFunction hashFunction) { this.hashFunction = hashFunction; } @Override public HashProcessor create() { return new GuavaProcessor(hashFunction.newHasher()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java
} private static final HashFunction MD5 = MessageDigestHashFunction.of("MD5"); private static final HashFunction SHA1 = MessageDigestHashFunction.of("SHA-1"); private static final HashFunction SHA256 = MessageDigestHashFunction.of("SHA-256"); private static final HashFunction SHA512 = MessageDigestHashFunction.of("SHA-512"); private static final HashFunction DEFAULT = MD5; /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:30 UTC 2024 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashingInputStream.java
* Creates an input stream that hashes using the given {@link HashFunction} and delegates all data * read from it to the underlying {@link InputStream}. * * <p>The {@link InputStream} should not be read from before or after the hand-off. */ public HashingInputStream(HashFunction hashFunction, InputStream in) { super(checkNotNull(in)); this.hasher = checkNotNull(hashFunction.newHasher()); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
// Helpers + main private byte runHashFunction(int reps, HashFunction hashFunction) { byte result = 0x01; // Trick the JVM to prevent it from using the hash function non-polymorphically result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; for (int i = 0; i < reps; i++) { result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; } return result;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 13 16:19:15 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashingOutputStream.java
*/ public final class HashingOutputStream extends FilterOutputStream { private final PrimitiveHasher hasher; public HashingOutputStream(HashFunction hashFunction, OutputStream out) { super(checkNotNull(out)); this.hasher = checkNotNull(hashFunction.newPrimitiveHasher()); } @Override public void write(int b) throws IOException { hasher.putByte((byte) b); out.write(b);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 1.6K bytes - Viewed (0)