bytes.Buffer.Len (method, view implemented interface methods)
61 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#L829: if c.rawInput.Len() >= n {
conn.go#L832: needs := n - c.rawInput.Len()
conn.go#L1083: for c.hand.Len() < n {
conn.go#L1396: for c.hand.Len() > 0 {
conn.go#L1412: if n != 0 && c.input.Len() == 0 && c.rawInput.Len() > 0 &&
conn.go#L1690: if c.hand.Len() != 0 {
handshake_server_tls13.go#L528: if c.hand.Len() != 0 {
quic.go#L294: for q.conn.hand.Len() >= 4 && q.conn.handshakeErr == nil {
quic.go#L398: for c.hand.Len() < n {
quic.go#L411: if c.hand.Len() != 0 {
encoding/xml
xml.go#L757: d.buf.Truncate(d.buf.Len() - 1)
xml.go#L948: n := d.saved.Len()
xml.go#L1036: before := d.buf.Len()
xml.go#L1057: start := d.buf.Len()
github.com/jackc/pgx/v5/internal/sanitize
sanitize.go#L36: 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#L377: 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#L1676: buf.Truncate(buf.Len() - 1) // remove trailing comma
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 {
golang.org/x/tools/internal/gcimporter
iexport.go#L407: fileOffset[i] = uint64(files.Len())
iexport.go#L413: dataLen := uint64(p.data0.Len())
iexport.go#L436: hdr.uint64(uint64(p.strings.Len()))
iexport.go#L438: hdr.uint64(uint64(files.Len()))
iexport.go#L633: off = uint64(p.strings.Len())
iexport.go#L975: off := uint64(w.p.data0.Len())
google.golang.org/grpc/internal/transport
controlbuf.go#L749: size := l.hBuf.Len()
mime/multipart
formdata.go#L196: fh.Size = int64(b.Len()) + remainingSize
net/http
h2_bundle.go#L3293: buf.Truncate(buf.Len() - 1) // remove trailing comma
request.go#L926: req.ContentLength = int64(v.Len())
net/http/httptest
httptest.go#L64: req.ContentLength = int64(v.Len())
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 {
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)