Пример #1
0
 public override object DecodeObject(ByteBuffer buffer, Microsoft.ServiceBus.Messaging.Amqp.Encoding.FormatCode formatCode)
 {
     if (formatCode == 0)
     {
         return(DescribedEncoding.Decode(buffer, formatCode));
     }
     return(AmqpEncoding.DecodeObject(buffer, formatCode));
 }
Пример #2
0
 public static DescribedType Decode(ByteBuffer buffer)
 {
     Microsoft.ServiceBus.Messaging.Amqp.Encoding.FormatCode formatCode  = AmqpEncoding.ReadFormatCode(buffer);
     Microsoft.ServiceBus.Messaging.Amqp.Encoding.FormatCode formatCode1 = formatCode;
     if (formatCode == 64)
     {
         return(null);
     }
     return(DescribedEncoding.Decode(buffer, formatCode1));
 }