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/internal/crypto
		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/internal/mtproto
		new_encrypted_msg.go#L42: 		if payloadBuf.Len() > c.compressThreshold {
		new_encrypted_msg.go#L56: 				MessageDataLen:         int32(payloadBuf.Len()),
		zap.go#L27: 	return c.logWithType(b).With(zap.Int("size_bytes", b.Len()))

	github.com/gotd/td/internal/mtproxy/faketls
		client_hello.go#L39: 		stack = append(stack, b.Len())
		client_hello.go#L47: 		length := b.Len() - s + 2
		client_hello.go#L86: 	if pad := clientHelloLength - b.Len(); pad > 0 {

	github.com/gotd/td/internal/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 {