- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 30 for HashString (0.22 sec)
-
android/guava/src/com/google/common/hash/AbstractHashFunction.java
} @Override public HashCode hashUnencodedChars(CharSequence input) { int len = input.length(); return newHasher(len * 2).putUnencodedChars(input).hash(); } @Override public HashCode hashString(CharSequence input, Charset charset) { return newHasher().putString(input, charset).hash(); } @Override public HashCode hashInt(int input) { return newHasher(4).putInt(input).hash(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 2.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/local/LazyLocallyAvailableResourceCandidatesTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java
assertHash( 0, 0x658ca970ff85269aL, 0x43fee3eaa68e5c3eL, "The quick brown fox jumps over the lazy cog"); // Known output from Python smhasher HashCode foxHash = murmur3_128(0).hashString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8); assertEquals("6c1b07bc7bbc4be347939ac4a93c437a", foxHash.toString()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/local/CompositeLocallyAvailableResourceFinderTest.groovy
def c2 = Mock(LocallyAvailableResourceCandidates) def f3 = Mock(LocallyAvailableResourceFinder) def c3 = Mock(LocallyAvailableResourceCandidates) def hash = Hashing.sha1().hashString("abc") def composite = new CompositeLocallyAvailableResourceFinder<String>([f1, f2, f3]) def criterion = "abc" when: def candidates = composite.findCandidates(criterion)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashFunction.java
/** * Hash the given bytes using the hash function. */ HashCode hashBytes(byte[] bytes); /** * Hash the given string using the hash function. */ HashCode hashString(CharSequence string); /** * Hash the contents of the given {@link java.io.InputStream}. */ HashCode hashStream(InputStream stream) throws IOException; /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 1.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/cache/internal/BuildScopeCacheDir.java
// No build definition, use a cache dir in the user home directory to avoid generating garbage in the root directory cacheDir = new File(userHomeDirProvider.getGradleUserHomeDirectory(), UNDEFINED_BUILD + Hashing.hashString(buildLayout.getRootDirectory().getAbsolutePath())); } else { // Use the .gradle directory in the build root directory cacheDir = new File(buildLayout.getRootDirectory(), ".gradle"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 23 18:02:38 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
for (int i = 0; i < len; i++) { buffer.putChar(input.charAt(i)); } return hashBytes(buffer.array()); } @Override public HashCode hashString(CharSequence input, Charset charset) { return hashBytes(input.toString().getBytes(charset)); } @Override public abstract HashCode hashBytes(byte[] input, int off, int len); @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractHashFunction.java
} @Override public HashCode hashUnencodedChars(CharSequence input) { int len = input.length(); return newHasher(len * 2).putUnencodedChars(input).hash(); } @Override public HashCode hashString(CharSequence input, Charset charset) { return newHasher().putString(input, charset).hash(); } @Override public HashCode hashInt(int input) { return newHasher(4).putInt(input).hash(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 2.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/PrecompiledScriptDependenciesResolver.kt
fun hashOf(charSequence: CharSequence) = hashOfNormalisedString(convertLineSeparatorsToUnix(charSequence.toString())) fun hashOfNormalisedString(charSequence: CharSequence) = Hashing.hashString(charSequence).toString() /** * **Optimisation note**: assumes [scriptText] contains only `\n` line separators as any script text * coming from the Kotlin compiler already should. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3.2K bytes - Viewed (0) -
build-logic/kotlin-dsl/src/main/kotlin/gradlebuild/kotlindsl/generator/tasks/GenerateKotlinExtensionsForGradleApi.kt
outputDir.resolve("$kotlinDslPackagePath/BuiltinPluginIdExtensions.kt").apply { parentFile.mkdirs() } private fun hashTypeSourceName(typeSourceName: String): String = Hashing.hashString(typeSourceName).toCompactString() private val GradleApiMetadata.apiSpec: (String) -> Boolean get() = { sourceName -> val relativeSourcePath = relativeSourcePathOf(sourceName)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 15:02:26 UTC 2023 - 5K bytes - Viewed (0)