Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 214 for inflate (0.14 sec)

  1. src/compress/flate/inflate.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package flate implements the DEFLATE compressed data format, described in
    // RFC 1951.  The gzip and zlib packages implement access to DEFLATE-based file
    // formats.
    package flate
    
    import (
    	"bufio"
    	"io"
    	"math/bits"
    	"strconv"
    	"sync"
    )
    
    const (
    	maxCodeLen = 16 // max length of Huffman code
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-10-13 23:20
    - 20.4K 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)
      }
    
    Registered: 2024-06-16 04:42
    - Last Modified: 2024-01-06 05:31
    - 5K bytes
    - Viewed (0)
  3. 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
    Registered: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 1.8K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/checkptr.go

    }
    
    // CheckPtrAlignmentNilPtr tests that checkptrAlignment doesn't crash
    // on nil pointers (#47430).
    func CheckPtrAlignmentNilPtr() {
    	var do func(int)
    	do = func(n int) {
    		// Inflate the stack so runtime.shrinkstack gets called during GC
    		if n > 0 {
    			do(n - 1)
    		}
    
    		var p unsafe.Pointer
    		_ = (*int)(p)
    	}
    
    	go func() {
    		for {
    			runtime.GC()
    		}
    	}()
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-08-31 17:15
    - 2.4K 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())
    Registered: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 9.8K bytes
    - Viewed (0)
  6. src/compress/flate/deflate_test.go

    			}
    			mm++
    			if mm == 10 {
    				t.Fatal("Stopping")
    			}
    		}
    	}
    	t.Logf("got %d bytes", len(out1))
    }
    
    // TestBestSpeed tests that round-tripping through deflate and then inflate
    // recovers the original input. The Write sizes are near the thresholds in the
    // compressor.encSpeed method (0, 16, 128), as well as near maxStoreBlockSize
    // (65535).
    func TestBestSpeed(t *testing.T) {
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-06-14 00:03
    - 25.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/initorder.go

    		}
    	}
    
    	// remove function nodes and collect remaining graph nodes in G
    	// (Mutually recursive functions may introduce cycles among themselves
    	// which are permitted. Yet such cycles may incorrectly inflate the dependency
    	// count for variables which in turn may not get scheduled for initialization
    	// in correct order.)
    	//
    	// Note that because we recursively copy predecessors and successors
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-03-28 22:06
    - 9.8K bytes
    - Viewed (0)
  8. src/go/types/initorder.go

    		}
    	}
    
    	// remove function nodes and collect remaining graph nodes in G
    	// (Mutually recursive functions may introduce cycles among themselves
    	// which are permitted. Yet such cycles may incorrectly inflate the dependency
    	// count for variables which in turn may not get scheduled for initialization
    	// in correct order.)
    	//
    	// Note that because we recursively copy predecessors and successors
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-04-03 18:48
    - 9.9K bytes
    - Viewed (0)
  9. cmd/metacache-stream_test.go

    "src/compress/bzip2/testdata/random.data.bz2", "src/compress/flate/", "src/compress/flate/deflate.go", "src/compress/flate/deflate_test.go", "src/compress/flate/deflatefast.go", "src/compress/flate/dict_decoder.go", "src/compress/flate/dict_decoder_test.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/c...
    Registered: 2024-06-16 00:44
    - Last Modified: 2022-09-19 18:05
    - 15K bytes
    - Viewed (0)
  10. cmd/metacache-entries_test.go

    "src/compress/bzip2/testdata/random.data.bz2", "src/compress/flate/deflate.go", "src/compress/flate/deflate_test.go", "src/compress/flate/deflatefast.go", "src/compress/flate/dict_decoder.go", "src/compress/flate/dict_decoder_test.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",...
    Registered: 2024-06-16 00:44
    - Last Modified: 2022-01-02 17:15
    - 31.6K bytes
    - Viewed (0)
Back to top