internal override void WriteField()

in src/Framing/Flow.cs [154:195]


        internal override void WriteField(ByteBuffer buffer, int index)
        {
            switch (index)
            {
                case 0:
                    Encoder.WriteUInt(buffer, this.nextIncomingId, true);
                    break;
                case 1:
                    Encoder.WriteUInt(buffer, this.incomingWindow, true);
                    break;
                case 2:
                    Encoder.WriteUInt(buffer, this.nextOutgoingId, true);
                    break;
                case 3:
                    Encoder.WriteUInt(buffer, this.outgoingWindow, true);
                    break;
                case 4:
                    Encoder.WriteUInt(buffer, this.handle, true);
                    break;
                case 5:
                    Encoder.WriteUInt(buffer, this.deliveryCount, true);
                    break;
                case 6:
                    Encoder.WriteUInt(buffer, this.linkCredit, true);
                    break;
                case 7:
                    Encoder.WriteUInt(buffer, this.available, true);
                    break;
                case 8:
                    Encoder.WriteBoolean(buffer, this.drain, true);
                    break;
                case 9:
                    Encoder.WriteBoolean(buffer, this.echo, true);
                    break;
                case 10:
                    Encoder.WriteMap(buffer, this.properties, true);
                    break;
                default:
                    Fx.Assert(false, "Invalid field index");
                    break;
            }
        }