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