Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TotalBytes (0.2 seconds)

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

      }
    
      private static void assertReadableBytes(HashCode hashCode) {
        assertThat(hashCode.bits()).isAtLeast(32); // sanity
        byte[] hashBytes = hashCode.asBytes();
        int totalBytes = hashCode.bits() / 8;
    
        for (int bytes = 0; bytes < totalBytes; bytes++) {
          byte[] bb = new byte[bytes];
          hashCode.writeBytesTo(bb, 0, bb.length);
    
          assertThat(bb).isEqualTo(Arrays.copyOf(hashBytes, bytes));
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      private static void assertReadableBytes(HashCode hashCode) {
        assertThat(hashCode.bits()).isAtLeast(32); // sanity
        byte[] hashBytes = hashCode.asBytes();
        int totalBytes = hashCode.bits() / 8;
    
        for (int bytes = 0; bytes < totalBytes; bytes++) {
          byte[] bb = new byte[bytes];
          hashCode.writeBytesTo(bb, 0, bb.length);
    
          assertThat(bb).isEqualTo(Arrays.copyOf(hashBytes, bytes));
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
Back to Top