Amqp.Framing.Codec.Encode C# (CSharp) Метод

Encode() публичный статический Метод

public static Encode ( Amqp.Types.RestrictedDescribed command, ByteBuffer buffer ) : void
command Amqp.Types.RestrictedDescribed
buffer ByteBuffer
Результат void
        public static void Encode(RestrictedDescribed command, ByteBuffer buffer)
        {
            Fx.Assert(command != null, "command is null!");
            command.Encode(buffer);
        }

Usage Example

Пример #1
0
 static void EncodeFrame(ByteBuffer buffer, FrameType type, ushort channel, DescribedList command)
 {
     AmqpBitConverter.WriteUInt(buffer, 0u);
     AmqpBitConverter.WriteUByte(buffer, DOF);
     AmqpBitConverter.WriteUByte(buffer, (byte)type);
     AmqpBitConverter.WriteUShort(buffer, channel);
     Codec.Encode(command, buffer);
 }
All Usage Examples Of Amqp.Framing.Codec::Encode