bytes.Buffer.Bytes (method)
31 uses
bytes (current package)
buffer.go#L54: func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
crypto/tls
auth.go#L87: return b.Bytes()
conn.go#L568: copy(err.RecordHeader[:], c.rawInput.Bytes())
conn.go#L617: hdr := c.rawInput.Bytes()[:recordHeaderLen]
conn.go#L1013: data := c.hand.Bytes()
conn.go#L1296: recordType(c.rawInput.Bytes()[0]) == recordTypeAlert {
encoding/json
encode.go#L165: buf := append([]byte(nil), e.Bytes()...)
encode.go#L185: return buf.Bytes(), nil
encode.go#L644: e.stringBytes(e2.Bytes(), false)
stream.go#L219: b := e.Bytes()
stream.go#L229: b = enc.indentBuf.Bytes()
encoding/pem
pem.go#L339: return buf.Bytes()
mime/multipart
formdata.go#L108: fh.content = b.Bytes()
net/http
h2_bundle.go#L8128: return cc.hbuf.Bytes(), nil
h2_bundle.go#L8176: return cc.hbuf.Bytes(), nil
h2_bundle.go#L9479: headerBlock := buf.Bytes()
h2_bundle.go#L9528: headerBlock := buf.Bytes()
h2_bundle.go#L9559: BlockFragment: buf.Bytes(),
request.go#L891: buf := v.Bytes()
server.go#L3333: w.Write(tw.wbuf.Bytes())
os/exec
exec.go#L552: return stdout.Bytes(), err
exec.go#L568: return b.Bytes(), err
exec.go#L728: return buf.Bytes()
src.elv.sh/pkg/cli/term
writer.go#L63: return buf.Bytes()
writer.go#L182: _, err := w.file.Write(bytesBuf.Bytes())
src.elv.sh/pkg/eval/mods/str
str.go#L173: if !utf8.Valid(b.Bytes()) {
str.go#L177: Actual: fmt.Sprint(b.Bytes())}
src.elv.sh/pkg/persistent/hashmap
hashmap.go#L145: return buf.Bytes(), nil
src.elv.sh/pkg/persistent/vector
vector.go#L432: return buf.Bytes(), nil
vendor/golang.org/x/net/http2/hpack
hpack.go#L257: d.buf = d.saveBuf.Bytes()
huffman.go#L28: return w.Write(buf.Bytes())