- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 292 for hashPtr (0.54 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java
} @Override public String toString() { return primitiveType.toString(array); } @Override public void appendToHasher(Hasher hasher) { primitiveType.appendTo(hasher, array); } @Override public ValueSnapshot snapshot(@Nullable Object value, ValueSnapshotter snapshotter) { PrimitiveType valueType = PrimitiveType.maybeOfValue(value);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 14.8K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractHasher.java
/** * An abstract implementation of {@link Hasher}, which only requires subtypes to implement {@link * #putByte}. Subtypes may provide more efficient implementations, however. * * @author Dimitris Andreou */ @ElementTypesAreNonnullByDefault abstract class AbstractHasher implements Hasher { @Override @CanIgnoreReturnValue public final Hasher putBoolean(boolean b) { return putByte(b ? (byte) 1 : (byte) 0);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/KeyHasherTest.groovy
class KeyHasherTest extends Specification { def "can reuse to hash more than one key"() { def hasher = new KeyHasher(BaseSerializerFactory.LONG_SERIALIZER) expect: hasher.getHashCode(12L) != hasher.getHashCode(11L) hasher.getHashCode(12L) == hasher.getHashCode(12L) hasher.getHashCode(12L) == new KeyHasher(BaseSerializerFactory.LONG_SERIALIZER).getHashCode(12L) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasherTest.groovy
@TempDir File tempDir def hasher = new LineEndingNormalizingInputStreamHasher() def "can normalize line endings in files (eol = '#description')"() { def unnormalized = file('unnormalized.txt') << content.textWithLineEndings(eol) def normalized = file('normalized.txt') << content.textWithLineEndings('\n') expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 3K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/IgnoringResourceEntryFilter.java
public boolean shouldBeIgnored(String entry) { return ignores.contains(entry); } @Override public void appendConfigurationToHasher(Hasher hasher) { hasher.putString(getClass().getName()); for (String ignore : ignores) { hasher.putString(ignore); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 1.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/DefaultResourceSnapshotterCacheService.java
} return resourceHash; } private static HashCode resourceHashCacheKey(HashCode contentHash, HashCode configurationHash) { Hasher hasher = Hashing.newHasher(); hasher.putHash(configurationHash); hasher.putHash(contentHash); return hasher.hash(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 10 13:47:15 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/HashingAlgorithmsBenchmark.java
private static class GuavaProcessor implements HashProcessor { private final Hasher hasher; public GuavaProcessor(Hasher hasher) { this.hasher = hasher; } @Override public void process(byte[] input, Blackhole blackhole) { hasher.putBytes(input); blackhole.consume(hasher.hash()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractByteHasher.java
private final ByteBuffer scratch = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN); /** Updates this hasher with the given byte. */ protected abstract void update(byte b); /** Updates this hasher with the given bytes. */ protected void update(byte[] b) { update(b, 0, b.length); } /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.5K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasher.java
this.attributeResourceFilter = attributeResourceFilter; } @Override public void appendConfigurationToHasher(Hasher hasher) { super.appendConfigurationToHasher(hasher); hasher.putString(getClass().getName()); attributeResourceFilter.appendConfigurationToHasher(hasher); } @Override boolean filter(RegularFileSnapshotContext context) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 5.5K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ZipHasher.java
return hashZipContents(fileSnapshotContext.getSnapshot()); } @Override public void appendConfigurationToHasher(Hasher hasher) { hasher.putString(getClass().getName()); resourceHasher.appendConfigurationToHasher(hasher); } @Nullable private HashCode hashZipContents(RegularFileSnapshot zipFileSnapshot) { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 6.4K bytes - Viewed (0)