Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testHashIntReverseBytesVsHashBytesIntsToByteArray (0.41 seconds)

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

        assertEquals(
            expected, Hashing.concatenating(asList(Hashing.md5(), Hashing.murmur3_32())).hashLong(42L));
      }
    
      public void testHashIntReverseBytesVsHashBytesIntsToByteArray() {
        int input = 42;
        assertEquals(
            Hashing.md5().hashBytes(Ints.toByteArray(input)),
            Hashing.md5().hashInt(Integer.reverseBytes(input)));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 26.7K bytes
    - Click Count (2)
Back to Top