Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for padToLong (0.13 sec)

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

        assertEquals(0x1111111111111111L, HashCode.fromLong(0x1111111111111111L).padToLong());
        assertEquals(0x9999999999999999L, HashCode.fromLong(0x9999999999999999L).padToLong());
        assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong());
        assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong());
      }
    
      public void testPadToLongWith4Bytes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertEquals(0x1111111111111111L, HashCode.fromLong(0x1111111111111111L).padToLong());
        assertEquals(0x9999999999999999L, HashCode.fromLong(0x9999999999999999L).padToLong());
        assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong());
        assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong());
      }
    
      public void testPadToLongWith4Bytes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashCode.java

       * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining
       * most-significant bytes.
       *
       * @since 14.0 (since 11.0 as {@code Hashing.padToLong(HashCode)})
       */
      public abstract long padToLong();
    
      /**
       * Returns the value of this hash code as a byte array. The caller may modify the byte array;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/HashCode.java

       * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining
       * most-significant bytes.
       *
       * @since 14.0 (since 11.0 as {@code Hashing.padToLong(HashCode)})
       */
      public abstract long padToLong();
    
      /**
       * Returns the value of this hash code as a byte array. The caller may modify the byte array;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <p>To get the {@code long} value equivalent to {@link Checksum#getValue()} for a {@code
       * HashCode} produced by this function, use {@link HashCode#padToLong()}.
       *
       * <p>This function is best understood as a <a
       * href="https://en.wikipedia.org/wiki/Checksum">checksum</a> rather than a true <a
       * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top