Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 56 for HashString (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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