Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for putString (0.16 sec)

  1. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            HashCode.fromBytes(mac.doFinal("!!!".getBytes(UTF_8))),
            Hashing.hmacSha1(SHA1_KEY)
                .newHasher()
                .putString("hello", UTF_8)
                .putString("world", UTF_8)
                .putString("!!!", UTF_8)
                .hash());
      }
    
      public void testCustomKey() throws Exception {
        SecretKey customKey =
            new SecretKey() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            HashCode.fromBytes(mac.doFinal("!!!".getBytes(UTF_8))),
            Hashing.hmacSha1(SHA1_KEY)
                .newHasher()
                .putString("hello", UTF_8)
                .putString("world", UTF_8)
                .putString("!!!", UTF_8)
                .hash());
      }
    
      public void testCustomKey() throws Exception {
        SecretKey customKey =
            new SecretKey() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          update(2, c);
          return this;
        }
    
        @CanIgnoreReturnValue
        @SuppressWarnings("deprecation") // need to use Charsets for Android tests to pass
        @Override
        public Hasher putString(CharSequence input, Charset charset) {
          if (Charsets.UTF_8.equals(charset)) {
            int utf16Length = input.length();
            int i = 0;
    
            // This loop optimizes for pure ASCII.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

            hashFunction.newHasher().putUnencodedChars(string).hash());
        for (Charset charset : CHARSETS) {
          assertEquals(
              hashFunction.hashString(string, charset),
              hashFunction.newHasher().putString(string, charset).hash());
        }
      }
    
      /**
       * This verifies that putUnencodedChars(String) and hashUnencodedChars(String) are equivalent,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

            hashFunction.newHasher().putUnencodedChars(string).hash());
        for (Charset charset : CHARSETS) {
          assertEquals(
              hashFunction.hashString(string, charset),
              hashFunction.newHasher().putString(string, charset).hash());
        }
      }
    
      /**
       * This verifies that putUnencodedChars(String) and hashUnencodedChars(String) are equivalent,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      for (i in 0 until length) {
        val c = this[i]
        if (c <= '\u001f' || c >= '\u007f') {
          return i
        }
      }
      return -1
    }
    
    /** Returns true if we should void putting this this header in an exception or toString(). */
    internal fun isSensitiveHeader(name: String): Boolean {
      return name.equals("Authorization", ignoreCase = true) ||
        name.equals("Cookie", ignoreCase = true) ||
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // The webhook cares about an operation if it matches _any_ Rule.
      // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      // from putting the cluster in a state which cannot be recovered from without completely
      // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // The webhook cares about an operation if it matches _any_ Rule.
      // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      // from putting the cluster in a state which cannot be recovered from without completely
      // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
              ? ((Comparable) a.getKey()).compareTo(b.getKey())
              : keyComparator.compare(a.getKey(), b.getKey());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Suppliers.java

        }
    
        @Override
        @ParametricNullness
        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top