Apache.Hadoop.Hbase.Thrift.Hbase.getColumnDescriptors_result.Write C# (CSharp) Method

Write() public method

public Write ( TProtocol oprot ) : void
oprot Thrift.Protocol.TProtocol
return void
            public void Write(TProtocol oprot)
            {
                TStruct struc = new TStruct("getColumnDescriptors_result");
                oprot.WriteStructBegin(struc);
                TField field = new TField();

                if (this.__isset.success) {
                  if (this.success != null) {
                field.Name = "success";
                field.Type = TType.Map;
                field.ID = 0;
                oprot.WriteFieldBegin(field);
                {
                  oprot.WriteMapBegin(new TMap(TType.String, TType.Struct, this.success.Count));
                  foreach (byte[] _iter17 in this.success.Keys)
                  {
                oprot.WriteBinary(_iter17);
                this.success[_iter17].Write(oprot);
                oprot.WriteMapEnd();
                  }
                }
                oprot.WriteFieldEnd();
                  }
                } else if (this.__isset.io) {
                  if (this.io != null) {
                field.Name = "io";
                field.Type = TType.Struct;
                field.ID = 1;
                oprot.WriteFieldBegin(field);
                this.io.Write(oprot);
                oprot.WriteFieldEnd();
                  }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }