in src/Framing/Attach.cs [176:226]
internal override void WriteField(ByteBuffer buffer, int index)
{
switch (index)
{
case 0:
Encoder.WriteString(buffer, this.linkName, true);
break;
case 1:
Encoder.WriteUInt(buffer, this.handle, true);
break;
case 2:
Encoder.WriteBoolean(buffer, this.role, true);
break;
case 3:
Encoder.WriteUByte(buffer, (byte)this.sndSettleMode);
break;
case 4:
Encoder.WriteUByte(buffer, (byte)this.rcvSettleMode);
break;
case 5:
Encoder.WriteObject(buffer, this.source);
break;
case 6:
Encoder.WriteObject(buffer, this.target);
break;
case 7:
Encoder.WriteMap(buffer, this.unsettled, true);
break;
case 8:
Encoder.WriteBoolean(buffer, this.incompleteUnsettled, true);
break;
case 9:
Encoder.WriteUInt(buffer, this.initialDeliveryCount, true);
break;
case 10:
Encoder.WriteULong(buffer, this.maxMessageSize, true);
break;
case 11:
Encoder.WriteObject(buffer, this.offeredCapabilities);
break;
case 12:
Encoder.WriteObject(buffer, this.desiredCapabilities);
break;
case 13:
Encoder.WriteMap(buffer, this.properties, true);
break;
default:
Fx.Assert(false, "Invalid field index");
break;
}
}