bytes.Buffer.Len (method, view implemented interface methods)
26 uses
bytes (current package)
buffer.go#L79: func (b *Buffer) Len() int { return len(b.buf) - b.off }
buffer.go#L97: if n < 0 || n > b.Len() {
buffer.go#L127: m := b.Len()
buffer.go#L260: if nBytes := b.Len(); nBytes > 0 {
buffer.go#L342: m := b.Len()
crypto/tls
conn.go#L633: if err == io.ErrUnexpectedEOF && c.rawInput.Len() == 0 {
conn.go#L708: if c.vers == VersionTLS13 && typ != recordTypeHandshake && c.hand.Len() > 0 {
conn.go#L744: if c.hand.Len() > 0 {
conn.go#L823: if c.rawInput.Len() >= n {
conn.go#L826: needs := n - c.rawInput.Len()
conn.go#L1077: for c.hand.Len() < n {
conn.go#L1388: for c.hand.Len() > 0 {
conn.go#L1404: if n != 0 && c.input.Len() == 0 && c.rawInput.Len() > 0 &&
handshake_client_tls13.go#L532: if c.hand.Len() != 0 {
handshake_client_tls13.go#L854: if c.hand.Len() != 0 {
handshake_server_tls13.go#L666: if c.hand.Len() != 0 {
handshake_server_tls13.go#L797: if c.hand.Len() != 0 {
quic.go#L274: for q.conn.hand.Len() >= 4 && q.conn.handshakeErr == nil {
quic.go#L376: for c.hand.Len() < n {
mime/multipart
formdata.go#L196: fh.Size = int64(b.Len()) + remainingSize
net/http
h2_bundle.go#L3073: buf.Truncate(buf.Len() - 1) // remove trailing comma
request.go#L935: 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.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |