github.com/gotd/td/bin.Buffer.ConsumeN (method)

7 uses

	github.com/gotd/td/bin (current package)
		decode.go#L69: func (b *Buffer) ConsumeN(target []byte, n int) error {

	github.com/gotd/td/internal/crypto
		encrypted_message.go#L15: 	if err := b.ConsumeN(e.AuthKeyID[:], 8); err != nil {
		encrypted_message.go#L27: 	if err := b.ConsumeN(e.EncryptedData, b.Len()); err != nil {
		encrypted_message.go#L36: 	if err := b.ConsumeN(e.AuthKeyID[:], 8); err != nil {

	github.com/gotd/td/internal/proto
		container.go#L95: 	return b.ConsumeN(m.Body, m.Bytes)
		unencrypted_message.go#L41: 	if err := b.ConsumeN(u.MessageData, int(dataLen)); err != nil {

	github.com/gotd/td/session/tdesktop
		dbi.go#L165: 	return r.buf.ConsumeN(target, n)