Microsoft.Azure.Amqp.Framing.Attach.OnDecode C# (CSharp) Method

OnDecode() protected method

protected OnDecode ( System.ByteBuffer buffer, int count ) : void
buffer System.ByteBuffer
count int
return void
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            if (count-- > 0)
            {
                this.LinkName = AmqpCodec.DecodeString(buffer);
            }

            if (count-- > 0)
            {
                this.Handle = AmqpCodec.DecodeUInt(buffer);
            }

            if (count-- > 0)
            {
                this.Role = AmqpCodec.DecodeBoolean(buffer);
            }

            if (count-- > 0)
            {
                this.SndSettleMode = AmqpCodec.DecodeUByte(buffer);
            }

            if (count-- > 0)
            {
                this.RcvSettleMode = AmqpCodec.DecodeUByte(buffer);
            }

            if (count-- > 0)
            {
                this.Source = AmqpCodec.DecodeObject(buffer);
            }

            if (count-- > 0)
            {
                this.Target = AmqpCodec.DecodeObject(buffer);
            }

            if (count-- > 0)
            {
                this.Unsettled = AmqpCodec.DecodeMap(buffer);
            }

            if (count-- > 0)
            {
                this.IncompleteUnsettled = AmqpCodec.DecodeBoolean(buffer);
            }

            if (count-- > 0)
            {
                this.InitialDeliveryCount = AmqpCodec.DecodeUInt(buffer);
            }

            if (count-- > 0)
            {
                this.MaxMessageSize = AmqpCodec.DecodeULong(buffer);
            }

            if (count-- > 0)
            {
                this.OfferedCapabilities = AmqpCodec.DecodeMultiple<AmqpSymbol>(buffer);
            }

            if (count-- > 0)
            {
                this.DesiredCapabilities = AmqpCodec.DecodeMultiple<AmqpSymbol>(buffer);
            }

            if (count-- > 0)
            {
                this.Properties = AmqpCodec.DecodeMap<Fields>(buffer);
            }
        }