Lines Matching refs:bytes
8 "bytes"
69 buf := new(bytes.Buffer)
81 r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
101 buf := new(bytes.Buffer)
116 r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
126 var buf bytes.Buffer
133 t.Fatalf("Unexpected %d bytes already in buffer", buf.Len())
139 t.Fatal("No bytes written after Flush")
178 if !bytes.Equal(b, wt.Data) {
185 var buf bytes.Buffer
186 bigBuf := bytes.Repeat([]byte("a"), 1<<20)