github.com/gotd/td/bin.Buffer.Len (method)
27 uses
github.com/gotd/td/bin (current package)
buffer.go#L61: func (b Buffer) Len() int {
github.com/gotd/td/crypto
bind.go#L132: plaintext.PutInt32(int32(payload.Len()))
encrypted_message.go#L26: e.EncryptedData = append(e.EncryptedData[:0], make([]byte, b.Len())...)
encrypted_message.go#L27: if err := b.ConsumeN(e.EncryptedData, b.Len()); err != nil {
encrypted_message_data.go#L45: lengthOffset := b.Len()
encrypted_message_data.go#L47: originalLength := b.Len()
encrypted_message_data.go#L51: msgLen := b.Len() - originalLength
github.com/gotd/td/mtproto
new_encrypted_msg.go#L44: if payloadBuf.Len() > c.compressThreshold {
new_encrypted_msg.go#L58: MessageDataLen: int32(payloadBuf.Len()),
zap.go#L26: return c.logWithType(b).With(log.Int("size_bytes", b.Len()))
github.com/gotd/td/proto
unencrypted_message.go#L48: if int(dataLen) > b.Len() {
github.com/gotd/td/proto/codec
abridged.go#L82: length := b.Len()
abridged.go#L90: encodeLength := b.Len() >> 2
errors.go#L52: length := b.Len()
errors.go#L60: length := b.Len()
errors.go#L68: if b.Len() != bin.Word {
full.go#L54: write := bin.Buffer{Buf: make([]byte, 0, 4+4+b.Len()+4)}
full.go#L57: write.PutInt(4 + 4 + b.Len() + 4)
intermediate.go#L81: length := b.Len()
intermediate.go#L87: inner.PutInt(b.Len())
padded_intermediate.go#L81: length := b.Len()
padded_intermediate.go#L103: padding := b.Len() % 4
padded_intermediate.go#L104: b.Buf = b.Buf[:b.Len()-padding]
github.com/gotd/td/session/tdesktop
dbi.go#L136: case size >= r.buf.Len():
dbi.go#L156: case size > r.buf.Len():
dbi.go#L169: if r.buf.Len() < n {
github.com/gotd/td/telegram/downloader
cdn_verify.go#L330: binary.BigEndian.PutUint32(iv.Buf[iv.Len()-4:], uint32(offset/16))
![]() |
The pages are generated with Golds v0.8.4. (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. |