Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for HuffmanDecode (0.16 sec)

  1. src/vendor/golang.org/x/net/http2/hpack/huffman.go

    }
    
    // HuffmanDecode decodes the string in v and writes the expanded
    // result to w, returning the number of bytes written to w and the
    // Write call's return value. At most one Write call is made.
    func HuffmanDecode(w io.Writer, v []byte) (int, error) {
    	buf := bufPool.Get().(*bytes.Buffer)
    	buf.Reset()
    	defer bufPool.Put(buf)
    	if err := huffmanDecode(buf, 0, v); err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          @Throws(IOException::class)
          fun readByteString(): ByteString {
            val firstByte = readByte()
            val huffmanDecode = firstByte and 0x80 == 0x80 // 1NNNNNNN
            val length = readInt(firstByte, PREFIX_7_BITS).toLong()
    
            return if (huffmanDecode) {
              val decodeBuffer = Buffer()
              Huffman.decode(source, length, decodeBuffer)
              decodeBuffer.readByteString()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/http2/hpack/hpack.go

    func (d *Decoder) decodeString(u undecodedString) (string, error) {
    	if !u.isHuff {
    		return string(u.b), nil
    	}
    	buf := bufPool.Get().(*bytes.Buffer)
    	buf.Reset() // don't trust others
    	var s string
    	err := huffmanDecode(buf, d.maxStrLen, u.b)
    	if err == nil {
    		s = buf.String()
    	}
    	buf.Reset() // be nice to GC
    	bufPool.Put(buf)
    	return s, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 14 18:30:34 UTC 2023
    - 14.7K bytes
    - Viewed (0)
Back to top