bytes.Buffer.Len (method, view implemented interface methods)
50 uses
bytes (current package)
buffer.go#L73: func (b *Buffer) Len() int { return len(b.buf) - b.off }
buffer.go#L88: if n < 0 || n > b.Len() {
buffer.go#L118: m := b.Len()
buffer.go#L238: if nBytes := b.Len(); nBytes > 0 {
buffer.go#L321: m := b.Len()
crypto/tls
conn.go#L617: if err == io.ErrUnexpectedEOF && c.rawInput.Len() == 0 {
conn.go#L686: if c.vers == VersionTLS13 && typ != recordTypeHandshake && c.hand.Len() > 0 {
conn.go#L719: if c.hand.Len() > 0 {
conn.go#L798: if c.rawInput.Len() >= n {
conn.go#L801: needs := n - c.rawInput.Len()
conn.go#L1015: for c.hand.Len() < 4 {
conn.go#L1027: for c.hand.Len() < 4+n {
conn.go#L1287: for c.hand.Len() > 0 {
conn.go#L1303: if n != 0 && c.input.Len() == 0 && c.rawInput.Len() > 0 &&
encoding/json
indent.go#L18: origLen := dst.Len()
indent.go#L82: origLen := dst.Len()
encoding/xml
xml.go#L758: d.buf.Truncate(d.buf.Len() - 1)
xml.go#L941: n := d.saved.Len()
xml.go#L1028: before := d.buf.Len()
xml.go#L1049: start := d.buf.Len()
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream
encode.go#L67: headersLen := uint32(e.headersBuf.Len())
github.com/aws/aws-sdk-go-v2/service/internal/checksum
aws_chunked_encoding.go#L372: return r.headerBuffer, r.headerBuffer.Len(), nil
aws_chunked_encoding.go#L388: ), r.headerBuffer.Len() + r.chunkBuffer.Len(), nil
github.com/aws/aws-sdk-go-v2/service/s3
deserializers.go#L4280: if buf.Len() > 0 {
go/ast
commentmap.go#L292: if buf.Len() >= maxLen {
commentmap.go#L300: if buf.Len() > maxLen {
go/printer
nodes.go#L1734: if buf.Len() <= maxSize {
nodes.go#L1740: size = buf.Len() // n fits
golang.org/x/net/http2
frame.go#L1632: 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#L148: fileOffset[i] = uint64(files.Len())
iexport.go#L154: dataLen := uint64(p.data0.Len())
iexport.go#L177: hdr.uint64(uint64(p.strings.Len()))
iexport.go#L179: hdr.uint64(uint64(files.Len()))
iexport.go#L362: off = uint64(p.strings.Len())
iexport.go#L685: off := uint64(w.p.data0.Len())
google.golang.org/grpc/internal/transport
controlbuf.go#L695: size := l.hBuf.Len()
transport.go#L168: if r.last.Len() == 0 {
transport.go#L224: if m.buffer.Len() == 0 {
net/http
h2_bundle.go#L2954: buf.Truncate(buf.Len() - 1) // remove trailing comma
request.go#L893: req.ContentLength = int64(v.Len())
net/http/httptest
httptest.go#L57: 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.4.9. (GOOS=linux GOARCH=amd64)