Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for hashBytes (0.37 sec)

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

        return fingerprint(bytes, bytes.length);
      }
    
      /** Convenience method to compute a fingerprint on a subset of a byte array. */
      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
       * Tests that the Java port of Fingerprint2011 provides the same results on buffers up to 800
       * bytes long as the original implementation in C++. See http://cl/106539598
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    		t.Fatal(err)
    	}
    	algo := HighwayHash256
    	h := algo.New()
    	h.Write(data)
    	hashBytes := h.Sum(nil)
    	if err := storage.WriteAll(t.Context(), volName, fileName, data); err != nil {
    		t.Fatal(err)
    	}
    	if err := storage.storage.bitrotVerify(t.Context(), pathJoin(path, volName, fileName), size, algo, hashBytes, 0); err != nil {
    		t.Fatal(err)
    	}
    
    	// 2) Whole-file bitrot check on corrupted file
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteSource.java

          output.write(bytes, offset, length);
          return length;
        }
    
        @Override
        public HashCode hash(HashFunction hashFunction) throws IOException {
          return hashFunction.hashBytes(bytes, offset, length);
        }
    
        @Override
        public ByteSource slice(long offset, long length) {
          checkArgument(offset >= 0, "offset (%s) may not be negative", offset);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 25.7K bytes
    - Viewed (0)
Back to top