bytes.Buffer.Bytes (method, view implemented interface methods)

39 uses

	bytes (current package)
		buffer.go#L60: func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }

	crypto/tls
		auth.go#L118: 	return b.Bytes()
		conn.go#L583: 	copy(err.RecordHeader[:], c.rawInput.Bytes())
		conn.go#L638: 	hdr := c.rawInput.Bytes()[:recordHeaderLen]
		conn.go#L1098: 	data := c.hand.Bytes()
		conn.go#L1413: 		recordType(c.rawInput.Bytes()[0]) == recordTypeAlert {
		quic.go#L295: 		b := q.conn.hand.Bytes()

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

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

	github.com/go-faster/jx
		w.go#L68: 	w.Buf = buf.Bytes()

	github.com/gotd/td/mtproxy/faketls
		server_hello.go#L69: 	packet := packetBuf.Bytes()

	github.com/gotd/td/proto
		gzip.go#L107: 	b.PutBytes(buf.Bytes())

	github.com/klauspost/compress/zstd
		dict.go#L520: 		_, err := loadDict(out.Bytes())
		dict.go#L524: 		i, err := InspectDictionary(out.Bytes())
		dict.go#L552: 		withDict := encWith(WithEncoderLevel(o.Level), WithEncoderDict(out.Bytes()))
		dict.go#L558: 	return out.Bytes(), nil

	github.com/refraction-networking/utls
		auth.go#L87: 		return b.Bytes()
		conn.go#L587: 	copy(err.RecordHeader[:], c.rawInput.Bytes())
		conn.go#L642: 	hdr := c.rawInput.Bytes()[:recordHeaderLen]
		conn.go#L1093: 	data := c.hand.Bytes()
		conn.go#L1415: 		recordType(c.rawInput.Bytes()[0]) == recordTypeAlert {
		quic.go#L275: 		b := q.conn.hand.Bytes()
		u_conn.go#L673: 	hello.Raw = helloBuffer.Bytes()
		u_conn.go#L895: 		recordType(c.rawInput.Bytes()[0]) == recordTypeAlert {
		u_quic.go#L117: 		b := q.conn.hand.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#L8905: 	hdrs := cc.hbuf.Bytes()
		h2_bundle.go#L9352: 	return cc.hbuf.Bytes(), nil
		h2_bundle.go#L10983: 	headerBlock := buf.Bytes()
		h2_bundle.go#L11032: 	headerBlock := buf.Bytes()
		h2_bundle.go#L11063: 		BlockFragment: buf.Bytes(),
		request.go#L927: 			buf := v.Bytes()
		server.go#L3852: 		w.Write(tw.wbuf.Bytes())

	rsc.io/qr
		png.go#L61: 	w.writeChunk("IDAT", w.zlib.bytes.Bytes())
		png.go#L66: 	return w.buf.Bytes()

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