Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wantNG (0.07 sec)

  1. src/net/http/h2_bundle.go

    		// receive. However, this may allocate less than len(p).
    		want := int64(len(p))
    		if b.expected > want {
    			want = b.expected
    		}
    		chunk := b.lastChunkOrAlloc(want)
    		n := copy(chunk[b.w:], p)
    		p = p[n:]
    		b.w += n
    		b.size += n
    		b.expected -= int64(n)
    	}
    	return ntotal, nil
    }
    
    func (b *http2dataBuffer) lastChunkOrAlloc(want int64) []byte {
    	if len(b.chunks) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top