bytes.Buffer.Bytes (method)

21 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#L586: 	copy(err.RecordHeader[:], c.rawInput.Bytes())
		conn.go#L641: 	hdr := c.rawInput.Bytes()[:recordHeaderLen]
		conn.go#L1092: 	data := c.hand.Bytes()
		conn.go#L1405: 		recordType(c.rawInput.Bytes()[0]) == recordTypeAlert {
		quic.go#L275: 		b := q.conn.hand.Bytes()

	encoding/json
		encode.go#L168: 	buf := append([]byte(nil), e.Bytes()...)
		stream.go#L223: 	b := e.Bytes()

	encoding/pem
		pem.go#L315: 	return buf.Bytes()

	mime/multipart
		formdata.go#L183: 			if _, err := file.Write(b.Bytes()); err != nil {
		formdata.go#L206: 			fh.content = b.Bytes()

	net/http
		h2_bundle.go#L9271: 	return cc.hbuf.Bytes(), nil
		h2_bundle.go#L9324: 	return cc.hbuf.Bytes(), nil
		h2_bundle.go#L10692: 	headerBlock := buf.Bytes()
		h2_bundle.go#L10741: 	headerBlock := buf.Bytes()
		h2_bundle.go#L10772: 		BlockFragment: buf.Bytes(),
		request.go#L936: 			buf := v.Bytes()
		server.go#L3687: 		w.Write(tw.wbuf.Bytes())

	vendor/golang.org/x/net/http2/hpack
		hpack.go#L257: 		d.buf = d.saveBuf.Bytes()
		huffman.go#L28: 	return w.Write(buf.Bytes())