Lines Matching defs:http2dataBuffer
1093 type http2dataBuffer struct { struct
1094 chunks [][]byte
1095 r int // next byte to read is chunks[0][r]
1096 w int // next byte to write is chunks[len(chunks)-1][w]
1097 size int // total buffered bytes
1098 expected int64 // we expect at least this many bytes in future Write calls (ignored if <= 0)
1105 func (b *http2dataBuffer) Read(p []byte) (int, error) {
1130 func (b *http2dataBuffer) bytesFromFirstChunk() []byte {
1138 func (b *http2dataBuffer) Len() int {
1143 func (b *http2dataBuffer) Write(p []byte) (int, error) {
1163 func (b *http2dataBuffer) lastChunkOrAlloc(want int64) []byte {