예제 #1
0
 public static void Encode(ByteBuffer buffer, MessageId messageId)
 {
     if (messageId == null)
     {
         AmqpEncoding.EncodeNull(buffer);
     }
     else
     {
         messageId.OnEncode(buffer);
     }
 }
예제 #2
0
 public static int GetEncodeSize(MessageId messageId)
 {
     return(messageId == null ? FixedWidth.NullEncoded : messageId.EncodeSize);
 }
예제 #3
0
 public static int GetEncodeSize(MessageId messageId)
 {
     return messageId == null ? FixedWidth.NullEncoded : messageId.EncodeSize;
 }