Lines Matching refs:buf
69 buf := new(bytes.Buffer)
70 w := NewWriter(buf)
81 r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
101 buf := new(bytes.Buffer)
103 n, _ := buf.Write(existingData)
104 w := NewWriter(buf)
116 r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
126 var buf bytes.Buffer
127 w := NewWriter(struct{ io.Writer }{&buf})
132 if buf.Len() > 0 {
133 t.Fatalf("Unexpected %d bytes already in buffer", buf.Len())
138 if buf.Len() == 0 {
185 var buf bytes.Buffer
188 buf.Reset()
189 zw := NewWriter(&buf)