Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Grow (0.28 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertThat(cache.size()).isEqualTo(10)
    
        // Cause the size to grow to 12 should evict 'A'.
        set("c", "c", "c")
        cache.flush()
        assertThat(cache.size()).isEqualTo(8)
        assertAbsent("a")
        assertValue("b", "bb", "bbbb")
        assertValue("c", "c", "c")
    
        // Causing the size to grow to 10 should evict nothing.
        set("d", "d", "d")
        cache.flush()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

            val entriesEvicted = evictToRecoverBytes(bytesToRecover)
    
            if (index == -1) { // Adding a value to the dynamic table.
              if (headerCount + 1 > dynamicTable.size) { // Need to grow the dynamic table.
                val doubled = arrayOfNulls<Header>(dynamicTable.size * 2)
                System.arraycopy(dynamicTable, 0, doubled, dynamicTable.size, dynamicTable.size)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
Back to top