Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Inflates (0.32 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt

      /** Inflates [buffer] in place as described in RFC 7692 section 7.2.2. */
      @Throws(IOException::class)
      fun inflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          inflater.reset()
        }
    
        deflatedBytes.writeAll(buffer)
        deflatedBytes.writeInt(OCTETS_TO_ADD_BEFORE_INFLATION)
    
        val totalBytesToRead = inflater.bytesRead + deflatedBytes.size
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

      @Test fun `inflate deflate`() {
        val deflater = MessageDeflater(false)
        val inflater = MessageInflater(false)
    
        val goldenValue = "Hello deflate!".repeat(100).encodeUtf8()
    
        val deflated = deflater.deflate(goldenValue)
        assertThat(deflated.size).isLessThan(goldenValue.size)
        val inflated = inflater.inflate(deflated)
    
        assertThat(inflated).isEqualTo(goldenValue)
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageDeflater.kt

      private val deflater =
        Deflater(
          Deflater.DEFAULT_COMPRESSION,
          // nowrap (omits zlib header):
          true,
        )
    
      private val deflaterSink = DeflaterSink(deflatedBytes, deflater)
    
      /** Deflates [buffer] in place as described in RFC 7692 section 7.2.1. */
      @Throws(IOException::class)
      fun deflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          deflater.reset()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

     * responses should be refused as their web socket extensions will not be understood.
     *
     * Note that [java.util.zip.Deflater] is hardcoded to use 15 bits (32 KiB) for
     * `client_max_window_bits` and [java.util.zip.Inflater] is hardcoded to use 15 bits (32 KiB) for
     * `server_max_window_bits`. This harms our ability to support these parameters:
     *
     *  * If `client_max_window_bits` is less than 15, OkHttp must close the web socket with code 1010.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        if (readingCompressedMessage) {
          val messageInflater =
            this.messageInflater
              ?: MessageInflater(noContextTakeover).also { this.messageInflater = it }
          messageInflater.inflate(messageFrameBuffer)
        }
    
        if (opcode == OPCODE_TEXT) {
          frameCallback.onReadMessage(messageFrameBuffer.readUtf8())
        } else {
          frameCallback.onReadMessage(messageFrameBuffer.readByteString())
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. cmd/metacache-entries_test.go

    go", "src/compress/flate/example_test.go", "src/compress/flate/flate_test.go", "src/compress/flate/huffman_bit_writer.go", "src/compress/flate/huffman_bit_writer_test.go", "src/compress/flate/huffman_code.go", "src/compress/flate/inflate.go", "src/compress/flate/inflate_test.go", "src/compress/flate/reader_test.go", "src/compress/flate/testdata/huffman-null-max.dyn.expect", "src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput", "src/compress/flate/testdata/huffman-null-max.golden", "...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 31.6K bytes
    - Viewed (0)
  7. cmd/metacache-stream_test.go

    go", "src/compress/flate/example_test.go", "src/compress/flate/flate_test.go", "src/compress/flate/huffman_bit_writer.go", "src/compress/flate/huffman_bit_writer_test.go", "src/compress/flate/huffman_code.go", "src/compress/flate/inflate.go", "src/compress/flate/inflate_test.go", "src/compress/flate/reader_test.go", "src/compress/flate/testdata/", "src/compress/flate/testdata/huffman-null-max.dyn.expect", "src/compress/flate/testdata/huffman-null-max.dyn.expect-noinput", "src/compress/flate/test...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_4x.md

        compresses messages of size 1 KiB and larger. (Inbound messages are compressed or not based on
        the web socket server's configuration.)
     *  New: Defer constructing `Inflater` and `Deflater` instances until they are needed. This saves
        memory if web socket compression is negotiated but not used.
    
    
    ## Version 4.5.0-RC1
    
    _2020-03-17_
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/GzipSource;->close()V
    HSPLokio/GzipSource;->read(Lokio/Buffer;J)J
    HSPLokio/GzipSource;->updateCrc(Lokio/Buffer;JJ)V
    HSPLokio/InflaterSource;-><init>(Lokio/BufferedSource;Ljava/util/zip/Inflater;)V
    HSPLokio/InflaterSource;->close()V
    HSPLokio/InflaterSource;->read(Lokio/Buffer;J)J
    HSPLokio/InputStreamSource;-><init>(Ljava/io/InputStream;Lokio/Timeout;)V
    HSPLokio/InputStreamSource;->close()V
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top