Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for HashString (0.32 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    func (h Hasher) Hash(t types.Type) uint32 {
    	hash, ok := h.memo[t]
    	if !ok {
    		hash = h.hashFor(t)
    		h.memo[t] = hash
    	}
    	return hash
    }
    
    // hashString computes the Fowler–Noll–Vo hash of s.
    func hashString(s string) uint32 {
    	var h uint32
    	for i := 0; i < len(s); i++ {
    		h ^= uint32(s[i])
    		h *= 16777619
    	}
    	return h
    }
    
    // hashFor computes the hash of t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      public void testHashCode_equalsAndSerializable() throws Exception {
        sanityTester().testEqualsAndSerializable();
      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII);
        HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString()));
        assertEquals(hash1, hash2);
      }
    
      public void testObjectHashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

              public String getFormat() {
                return "RAW";
              }
            };
        assertEquals(
            "ad262969c53bc16032f160081c4a07a0",
            Hashing.hmacMd5(customKey)
                .hashString("The quick brown fox jumps over the lazy dog", UTF_8)
                .toString());
      }
    
      public void testBadKey_emptyKey() throws Exception {
        SecretKey badKey =
            new SecretKey() {
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

              public String getFormat() {
                return "RAW";
              }
            };
        assertEquals(
            "ad262969c53bc16032f160081c4a07a0",
            Hashing.hmacMd5(customKey)
                .hashString("The quick brown fox jumps over the lazy dog", UTF_8)
                .toString());
      }
    
      public void testBadKey_emptyKey() throws Exception {
        SecretKey badKey =
            new SecretKey() {
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/internal/coverage/cfile/testsupport.go

    	// hash (just in case there are multiple instrumented executables
    	// in play). See issue #57924 for more on this.
    	hashstring := fmt.Sprintf("%x", finalHash)
    	importpaths := make(map[string]struct{})
    	for _, p := range podlist {
    		if !strings.Contains(p.MetaFile, hashstring) {
    			continue
    		}
    		if err := ts.processPod(p, importpaths); err != nil {
    			return err
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top