Esempio n. 1
0
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            if (count-- > 0)
            {
                this.Role = AmqpCodec.DecodeBoolean(buffer);
            }

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

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

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

            if (count-- > 0)
            {
                this.State = (DeliveryState)AmqpCodec.DecodeAmqpDescribed(buffer);
            }

            if (count-- > 0)
            {
                this.Batchable = AmqpCodec.DecodeBoolean(buffer);
            }
        }
Esempio n. 2
0
 void DecodeCommand(ByteBuffer buffer)
 {
     if (buffer.Length > 0)
     {
         this.Command = (Performative)AmqpCodec.DecodeAmqpDescribed(buffer);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Decodes the fields from the buffer.
        /// </summary>
        /// <param name="buffer">The buffer.</param>
        /// <param name="count">The number of fields.</param>
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            if (count-- > 0)
            {
                this.Address = Address.Decode(buffer);
            }

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

            if (count-- > 0)
            {
                this.ExpiryPolicy = AmqpCodec.DecodeSymbol(buffer);
            }

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

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

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

            if (count-- > 0)
            {
                this.DistributionMode = AmqpCodec.DecodeSymbol(buffer);
            }

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

            if (count-- > 0)
            {
                this.DefaultOutcome = (Outcome)AmqpCodec.DecodeAmqpDescribed(buffer);
            }

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

            if (count-- > 0)
            {
                this.Capabilities = AmqpCodec.DecodeMultiple <AmqpSymbol>(buffer);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Decodes the fields from the buffer.
        /// </summary>
        /// <param name="buffer">The buffer.</param>
        /// <param name="count">The number of fields.</param>
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            if (count-- > 0)
            {
                this.Handle = AmqpCodec.DecodeUInt(buffer);
            }

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

            if (count-- > 0)
            {
                this.DeliveryTag = AmqpCodec.DecodeBinary(buffer);
            }

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

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

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

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

            if (count-- > 0)
            {
                this.State = (DeliveryState)AmqpCodec.DecodeAmqpDescribed(buffer);
            }

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

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

            if (count-- > 0)
            {
                this.Batchable = AmqpCodec.DecodeBoolean(buffer);
            }
        }
Esempio n. 5
0
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            if (count-- > 0)
            {
                this.TxnId = AmqpCodec.DecodeBinary(buffer);
            }

            if (count-- > 0)
            {
                this.Outcome = (Outcome)AmqpCodec.DecodeAmqpDescribed(buffer);
            }
        }
Esempio n. 6
0
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            int num = count;

            count = num - 1;
            if (num > 0)
            {
                this.TxnId = AmqpCodec.DecodeBinary(buffer);
            }
            int num1 = count;

            count = num1 - 1;
            if (num1 > 0)
            {
                this.Outcome = (Microsoft.ServiceBus.Messaging.Amqp.Framing.Outcome)AmqpCodec.DecodeAmqpDescribed(buffer);
            }
        }
Esempio n. 7
0
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            int num = count;

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

            count = num1 - 1;
            if (num1 > 0)
            {
                this.First = AmqpCodec.DecodeUInt(buffer);
            }
            int num2 = count;

            count = num2 - 1;
            if (num2 > 0)
            {
                this.Last = AmqpCodec.DecodeUInt(buffer);
            }
            int num3 = count;

            count = num3 - 1;
            if (num3 > 0)
            {
                this.Settled = AmqpCodec.DecodeBoolean(buffer);
            }
            int num4 = count;

            count = num4 - 1;
            if (num4 > 0)
            {
                this.State = (DeliveryState)AmqpCodec.DecodeAmqpDescribed(buffer);
            }
            int num5 = count;

            count = num5 - 1;
            if (num5 > 0)
            {
                this.Batchable = AmqpCodec.DecodeBoolean(buffer);
            }
        }
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            if (count-- > 0)
            {
                this.Filter = (AmqpFilterCodec)AmqpCodec.DecodeAmqpDescribed(buffer);
            }

            if (count-- > 0)
            {
                this.Action = (AmqpRuleActionCodec)AmqpCodec.DecodeAmqpDescribed(buffer);
            }

            if (count-- > 0)
            {
                this.RuleName = AmqpCodec.DecodeString(buffer);
            }

            if (count > 0)
            {
                this.CreatedAt = AmqpCodec.DecodeTimeStamp(buffer);
            }
        }
Esempio n. 9
0
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            int num = count;

            count = num - 1;
            if (num > 0)
            {
                this.Address = Microsoft.ServiceBus.Messaging.Amqp.Framing.Address.Decode(buffer);
            }
            int num1 = count;

            count = num1 - 1;
            if (num1 > 0)
            {
                this.Durable = AmqpCodec.DecodeUInt(buffer);
            }
            int num2 = count;

            count = num2 - 1;
            if (num2 > 0)
            {
                this.ExpiryPolicy = AmqpCodec.DecodeSymbol(buffer);
            }
            int num3 = count;

            count = num3 - 1;
            if (num3 > 0)
            {
                this.Timeout = AmqpCodec.DecodeUInt(buffer);
            }
            int num4 = count;

            count = num4 - 1;
            if (num4 > 0)
            {
                this.Dynamic = AmqpCodec.DecodeBoolean(buffer);
            }
            int num5 = count;

            count = num5 - 1;
            if (num5 > 0)
            {
                this.DynamicNodeProperties = AmqpCodec.DecodeMap <Microsoft.ServiceBus.Messaging.Amqp.Framing.Fields>(buffer);
            }
            int num6 = count;

            count = num6 - 1;
            if (num6 > 0)
            {
                this.DistributionMode = AmqpCodec.DecodeSymbol(buffer);
            }
            int num7 = count;

            count = num7 - 1;
            if (num7 > 0)
            {
                this.FilterSet = AmqpCodec.DecodeMap <Microsoft.ServiceBus.Messaging.Amqp.Framing.FilterSet>(buffer);
            }
            int num8 = count;

            count = num8 - 1;
            if (num8 > 0)
            {
                this.DefaultOutcome = (Outcome)AmqpCodec.DecodeAmqpDescribed(buffer);
            }
            int num9 = count;

            count = num9 - 1;
            if (num9 > 0)
            {
                this.Outcomes = AmqpCodec.DecodeMultiple <AmqpSymbol>(buffer);
            }
            int num10 = count;

            count = num10 - 1;
            if (num10 > 0)
            {
                this.Capabilities = AmqpCodec.DecodeMultiple <AmqpSymbol>(buffer);
            }
        }
Esempio n. 10
0
        protected override void OnDecode(ByteBuffer buffer, int count)
        {
            int num = count;

            count = num - 1;
            if (num > 0)
            {
                base.Handle = AmqpCodec.DecodeUInt(buffer);
            }
            int num1 = count;

            count = num1 - 1;
            if (num1 > 0)
            {
                this.DeliveryId = AmqpCodec.DecodeUInt(buffer);
            }
            int num2 = count;

            count = num2 - 1;
            if (num2 > 0)
            {
                this.DeliveryTag = AmqpCodec.DecodeBinary(buffer);
            }
            int num3 = count;

            count = num3 - 1;
            if (num3 > 0)
            {
                this.MessageFormat = AmqpCodec.DecodeUInt(buffer);
            }
            int num4 = count;

            count = num4 - 1;
            if (num4 > 0)
            {
                this.Settled = AmqpCodec.DecodeBoolean(buffer);
            }
            int num5 = count;

            count = num5 - 1;
            if (num5 > 0)
            {
                this.More = AmqpCodec.DecodeBoolean(buffer);
            }
            int num6 = count;

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

            count = num7 - 1;
            if (num7 > 0)
            {
                this.State = (DeliveryState)AmqpCodec.DecodeAmqpDescribed(buffer);
            }
            int num8 = count;

            count = num8 - 1;
            if (num8 > 0)
            {
                this.Resume = AmqpCodec.DecodeBoolean(buffer);
            }
            int num9 = count;

            count = num9 - 1;
            if (num9 > 0)
            {
                this.Aborted = AmqpCodec.DecodeBoolean(buffer);
            }
            int num10 = count;

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