Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getBytesInternal (0.16 sec)

  1. guava/src/com/google/common/hash/HashCode.java

        }
    
        @Override
        byte[] getBytesInternal() {
          return bytes;
        }
    
        @Override
        boolean equalsSameBits(HashCode that) {
          // We don't use MessageDigest.isEqual() here because its contract does not guarantee
          // constant-time evaluation (no short-circuiting).
          if (this.bytes.length != that.getBytesInternal().length) {
            return false;
          }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/HashCode.java

        }
    
        @Override
        byte[] getBytesInternal() {
          return bytes;
        }
    
        @Override
        boolean equalsSameBits(HashCode that) {
          // We don't use MessageDigest.isEqual() here because its contract does not guarantee
          // constant-time evaluation (no short-circuiting).
          if (this.bytes.length != that.getBytesInternal().length) {
            return false;
          }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

            Funnel<? super T> funnel,
            int numHashFunctions,
            LockFreeBitArray bits) {
          long bitSize = bits.bitSize();
          byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal();
          long hash1 = lowerEight(bytes);
          long hash2 = upperEight(bytes);
    
          boolean bitsChanged = false;
          long combinedHash = hash1;
          for (int i = 0; i < numHashFunctions; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/BloomFilterStrategies.java

            Funnel<? super T> funnel,
            int numHashFunctions,
            LockFreeBitArray bits) {
          long bitSize = bits.bitSize();
          byte[] bytes = Hashing.murmur3_128().hashObject(object, funnel).getBytesInternal();
          long hash1 = lowerEight(bytes);
          long hash2 = upperEight(bytes);
    
          boolean bitsChanged = false;
          long combinedHash = hash1;
          for (int i = 0; i < numHashFunctions; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hashCode = HashCode.fromBytes(bytes);
    
        assertEquals(0x0000abcd, hashCode.asInt());
        assertEquals("cdab0000", hashCode.toString());
    
        hashCode.getBytesInternal()[0] = (byte) 0x00;
    
        assertEquals(0x0000ab00, hashCode.asInt());
        assertEquals("00ab0000", hashCode.toString());
      }
    
      public void testPadToLong() {
    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