Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,396 for hash (0.14 sec)

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

        assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong());
      }
    
      private static void assertSip(byte[] input, long expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  2. internal/etag/reader.go

    	uuid []byte
    }
    
    // Write -  implement hash.Hash Write
    func (u UUIDHash) Write(p []byte) (n int, err error) {
    	return len(p), nil
    }
    
    // Sum -  implement md5.Sum
    func (u UUIDHash) Sum(b []byte) []byte {
    	return u.uuid
    }
    
    // Reset -  implement hash.Hash Reset
    func (u UUIDHash) Reset() {
    	return
    }
    
    // Size -  implement hash.Hash Size
    func (u UUIDHash) Size() int {
    	return len(u.uuid)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.hash;
    
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          String expectedMessage =
              "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be "
                  + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]";
          if (!expected.getMessage().contains(expectedMessage)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          String expectedMessage =
              "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be "
                  + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]";
          if (!expected.getMessage().contains(expectedMessage)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  6. cmd/data-usage-cache.go

    	hash := hashPath(path)
    	if d.Cache == nil {
    		d.Cache = make(map[string]dataUsageEntry, 100)
    	}
    	d.Cache[hash.Key()] = e
    	if parent != "" {
    		phash := hashPath(parent)
    		p := d.Cache[phash.Key()]
    		p.addChild(hash)
    		d.Cache[phash.Key()] = p
    	}
    }
    
    // replaceHashed add or replaces an entry to the cache based on its hash.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  7. guava/src/com/google/common/base/Objects.java

        return a == b || (a != null && a.equals(b));
      }
    
      /**
       * Generates a hash code for multiple values. The hash code is generated by calling {@link
       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

              new Sink(4).putUnencodedChars(s).hash(),
              new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putString(s, UTF_16LE).hash());
        }
      }
    
      public void testFloat() {
        Sink sink = new Sink(4);
        sink.putFloat(Float.intBitsToFloat(0x04030201));
        HashCode unused = sink.hash();
        sink.assertInvariants(4);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/InversionArtifactFilter.java

        }
    
        public boolean include(Artifact artifact) {
            return !toInvert.include(artifact);
        }
    
        @Override
        public int hashCode() {
            int hash = 17;
            hash = hash * 31 + toInvert.hashCode();
            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Striped64.java

       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
       * than CPUs, supposing that each thread were bound to a CPU,
       * there would exist a perfect hash function mapping threads to
       * slots that eliminates collisions. When we reach capacity, we
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top