protected override void OnEncode(ByteBuffer buffer)
{
AmqpCodec.EncodeString(this.LinkName, buffer);
AmqpCodec.EncodeUInt(this.Handle, buffer);
AmqpCodec.EncodeBoolean(this.Role, buffer);
AmqpCodec.EncodeUByte(this.SndSettleMode, buffer);
AmqpCodec.EncodeUByte(this.RcvSettleMode, buffer);
AmqpCodec.EncodeObject(this.Source, buffer);
AmqpCodec.EncodeObject(this.Target, buffer);
AmqpCodec.EncodeMap(this.Unsettled, buffer);
AmqpCodec.EncodeBoolean(this.IncompleteUnsettled, buffer);
AmqpCodec.EncodeUInt(this.InitialDeliveryCount, buffer);
AmqpCodec.EncodeULong(this.MaxMessageSize, buffer);
AmqpCodec.EncodeMultiple(this.OfferedCapabilities, buffer);
AmqpCodec.EncodeMultiple(this.DesiredCapabilities, buffer);
AmqpCodec.EncodeMap(this.Properties, buffer);
}