예제 #1
0
파일: Serializer.cs 프로젝트: chartly/flood
 public abstract void WriteDataObjectBegin(DataObject data);
예제 #2
0
 public override void WriteDataObjectBegin(DataObject struc)
 {
 }
예제 #3
0
 public override void WriteDataObjectBegin(DataObject str)
 {
     WriteJSONObjectStart();
 }
예제 #4
0
 /**
  * Write a struct begin. This doesn't actually put anything on the wire. We
  * use it as an opportunity to put special placeholder markers on the field
  * stack so we can get the field id deltas correct.
  */
 public override void WriteDataObjectBegin(DataObject strct)
 {
     lastField_.Push(lastFieldId_);
     lastFieldId_ = 0;
 }
예제 #5
0
 public override void WriteDataObjectBegin(DataObject struc)
 {
 }
예제 #6
0
        public void Write(Serializer oprot)
        {
            DataObject struc = new DataObject("TApplicationException");
            Field field = new Field();

            oprot.WriteDataObjectBegin(struc);

            if (!String.IsNullOrEmpty(Message))
            {
                field.Name = "message";
                field.Type = TType.String;
                field.ID = 1;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Message);
                oprot.WriteFieldEnd();
            }

            field.Name = "type";
            field.Type = TType.I32;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            oprot.WriteI32((int)type);
            oprot.WriteFieldEnd();
            oprot.WriteFieldStop();
            oprot.WriteDataObjectEnd();
        }
예제 #7
0
 /**
  * Write a struct begin. This doesn't actually put anything on the wire. We
  * use it as an opportunity to put special placeholder markers on the field
  * stack so we can get the field id deltas correct.
  */
 public override void WriteDataObjectBegin(DataObject strct)
 {
     lastField_.Push(lastFieldId_);
     lastFieldId_ = 0;
 }