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

63 uses

	bytes (current package)
		buffer.go#L86: 	if b.Len() < n {
		buffer.go#L97: func (b *Buffer) Len() int { return len(b.buf) - b.off }
		buffer.go#L115: 	if n < 0 || n > b.Len() {
		buffer.go#L145: 	m := b.Len()
		buffer.go#L278: 	if nBytes := b.Len(); nBytes > 0 {
		buffer.go#L360: 	m := b.Len()

	crypto/tls
		conn.go#L630: 		if err == io.ErrUnexpectedEOF && c.rawInput.Len() == 0 {
		conn.go#L705: 	if c.vers == VersionTLS13 && typ != recordTypeHandshake && c.hand.Len() > 0 {
		conn.go#L750: 		if c.hand.Len() > 0 {
		conn.go#L806: 	if c.rawInput.Len() >= n {
		conn.go#L809: 	needs := n - c.rawInput.Len()
		conn.go#L1082: 	for c.hand.Len() < n {
		conn.go#L1395: 		for c.hand.Len() > 0 {
		conn.go#L1411: 	if n != 0 && c.input.Len() == 0 && c.rawInput.Len() > 0 &&
		conn.go#L1688: 	if c.hand.Len() != 0 {
		handshake_server_tls13.go#L531: 	if c.hand.Len() != 0 {
		quic.go#L293: 	for q.conn.hand.Len() >= 4 && q.conn.handshakeErr == nil {
		quic.go#L397: 	for c.hand.Len() < n {
		quic.go#L410: 	if c.hand.Len() != 0 {

	encoding/json/jsontext
		decode.go#L186: 		case bb.Len() == 0:
		decode.go#L189: 			d.buf = bb.Next(bb.Len()) // "read" all data in the buffer
		encode.go#L186: 		if avail := bb.Available(); avail < bb.Len()/4 {

	encoding/xml
		xml.go#L764: 				d.buf.Truncate(d.buf.Len() - 1)
		xml.go#L955: 	n := d.saved.Len()
		xml.go#L1043: 			before := d.buf.Len()
		xml.go#L1064: 				start := d.buf.Len()

	github.com/jackc/pgx/v5/internal/sanitize
		sanitize.go#L37: 		n := b.Len()

	github.com/jackc/pgx/v5/pgproto3
		copy_both_response.go#L26: 	if buf.Len() < 3 {
		copy_both_response.go#L33: 	if buf.Len() != columnCount*2 {
		copy_in_response.go#L26: 	if buf.Len() < 3 {
		copy_in_response.go#L33: 	if buf.Len() != columnCount*2 {
		copy_out_response.go#L25: 	if buf.Len() < 3 {
		copy_out_response.go#L32: 	if buf.Len() != columnCount*2 {
		execute.go#L30: 	if buf.Len() < 4 {
		notification_response.go#L25: 	if buf.Len() < 4 {
		parameter_description.go#L25: 	if buf.Len() < 2 {
		parameter_description.go#L32: 	parameterCount := buf.Len() / 4
		parse.go#L41: 	if buf.Len() < 2 {
		parse.go#L47: 		if buf.Len() < 4 {

	github.com/jackc/pgx/v5/pgtype
		array.go#L241: 	if buf.Len() > 0 {
		multirange.go#L383: 	if buf.Len() > 0 {
		range.go#L107: 	if buf.Len() > 0 {

	go/ast
		commentmap.go#L273: 			if buf.Len() >= maxLen {
		commentmap.go#L281: 	if buf.Len() > maxLen {

	golang.org/x/net/http2
		frame.go#L1861: 			buf.Truncate(buf.Len() - 1) // remove trailing comma

	golang.org/x/net/http2/hpack
		hpack.go#L235: 	if d.saveBuf.Len() > 0 {
		hpack.go#L252: 	if d.saveBuf.Len() == 0 {
		huffman.go#L67: 				if maxLen != 0 && buf.Len() == maxLen {
		huffman.go#L87: 		if maxLen != 0 && buf.Len() == maxLen {

	golang.org/x/tools/internal/gcimporter
		iexport.go#L386: 			fileOffset[i] = uint64(files.Len())
		iexport.go#L392: 	dataLen := uint64(p.data0.Len())
		iexport.go#L400: 	hdr.uint64(uint64(p.strings.Len()))
		iexport.go#L402: 		hdr.uint64(uint64(files.Len()))
		iexport.go#L596: 		off = uint64(p.strings.Len())
		iexport.go#L951: 	off := uint64(w.p.data0.Len())

	google.golang.org/grpc/internal/transport
		controlbuf.go#L754: 		size := l.hBuf.Len()

	mime/multipart
		formdata.go#L195: 			fh.Size = int64(b.Len()) + remainingSize

	net/http
		request.go#L936: 			req.ContentLength = int64(v.Len())

	net/http/internal/http2
		frame.go#L1879: 			buf.Truncate(buf.Len() - 1) // remove trailing comma

	vendor/golang.org/x/net/http2/hpack
		hpack.go#L236: 	if d.saveBuf.Len() > 0 {
		hpack.go#L253: 	if d.saveBuf.Len() == 0 {
		huffman.go#L67: 				if maxLen != 0 && buf.Len() == maxLen {
		huffman.go#L87: 		if maxLen != 0 && buf.Len() == maxLen {