Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 56 for HashString (0.16 sec)

  1. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            return DEFAULT.hashBytes(bytes);
        }
    
        /**
         * Hash the given string with the default hash function.
         */
        public static HashCode hashString(CharSequence string) {
            return DEFAULT.hashString(string);
        }
    
        /**
         * Hash the contents of the given {@link java.io.InputStream} with the default hash function.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. platforms/software/version-control/src/main/java/org/gradle/vcs/internal/services/DefaultVersionControlRepositoryFactory.java

    import java.util.Set;
    import java.util.function.Supplier;
    
    import static org.gradle.api.internal.cache.CacheConfigurationsInternal.DEFAULT_MAX_AGE_IN_DAYS_FOR_CREATED_CACHE_ENTRIES;
    import static org.gradle.internal.hash.Hashing.hashString;
    import static org.gradle.internal.time.TimestampSuppliers.daysAgo;
    
    public class DefaultVersionControlRepositoryFactory implements VersionControlRepositoryConnectionFactory, Stoppable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 18:35:55 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. 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)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/local/LazyLocallyAvailableResourceCandidatesTest.groovy

            def isNone = candidates.isNone()
    
            then:
            !isNone
            1 * factory.create() >> [file("abc"), file("def")]
    
            when:
            def candidate = candidates.findByHashValue(Hashing.sha1().hashString("def"))
    
            then:
            candidate.file.name == "def"
            0 * factory.create()
        }
    
        File file(path) {
            tmp.createFile(path) << path
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/hash/HashFunction.java

       * running the same hash function on the equivalent input. For cross-language compatibility, use
       * {@link #hashString}, usually with a charset of UTF-8. For other use cases, use {@code
       * hashUnencodedChars}.
       *
       * @since 15.0 (since 11.0 as hashString(CharSequence)).
       */
      HashCode hashUnencodedChars(CharSequence input);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/HashFunction.java

       * running the same hash function on the equivalent input. For cross-language compatibility, use
       * {@link #hashString}, usually with a charset of UTF-8. For other use cases, use {@code
       * hashUnencodedChars}.
       *
       * @since 15.0 (since 11.0 as hashString(CharSequence)).
       */
      HashCode hashUnencodedChars(CharSequence input);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top