public static AmqpDescribed DecodeAmqpDescribed(ByteBuffer buffer, Dictionary <string, Func <AmqpDescribed> > byName, Dictionary <ulong, Func <AmqpDescribed> > byCode) { AmqpDescribed amqpDescribed = AmqpCodec.CreateAmqpDescribed(buffer, byName, byCode); if (amqpDescribed != null) { amqpDescribed.DecodeValue(buffer); } return(amqpDescribed); }
public static AmqpDescribed CreateAmqpDescribed(ByteBuffer buffer) { return(AmqpCodec.CreateAmqpDescribed(buffer, AmqpCodec.knownTypesByName, AmqpCodec.knownTypesByCode)); }