Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for serializedSize (0.06 seconds)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

       * size before writing to pre-allocated space (e.g., for memory-mapped files or fixed-size
       * records).
       *
       * @since NEXT
       */
      public long serializedSize() {
        // We return a long (and not an int) because the max serialized size is approximately
        // 17 billion bytes (2^31 * 8 bytes).
    
        // The serialization header is 6 bytes:
        //   1 byte for the strategy
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 10 22:28:12 GMT 2026
    - 27.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            long predictedSize = bf.bitSize() / 8 + 6;
            assertThat(bf.serializedSize()).isEqualTo(predictedSize);
    
            // Serialize and measure actual size
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            bf.writeTo(out);
            int actualSize = out.size();
            assertThat(bf.serializedSize()).isEqualTo(actualSize);
    
            assertWithMessage(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 23K bytes
    - Click Count (0)
Back to Top