Beispiel #1
0
 public override void WriteMapBegin(TMap map)
 {
     this.WriteJSONArrayStart();
     this.WriteJSONString(TJSONProtocol.GetTypeNameForTypeID(map.KeyType));
     this.WriteJSONString(TJSONProtocol.GetTypeNameForTypeID(map.ValueType));
     this.WriteJSONInteger((long)map.Count);
     this.WriteJSONObjectStart();
 }
Beispiel #2
0
 public override void WriteSetBegin(TSet set)
 {
     this.WriteJSONArrayStart();
     this.WriteJSONString(TJSONProtocol.GetTypeNameForTypeID(set.ElementType));
     this.WriteJSONInteger((long)set.Count);
 }
Beispiel #3
0
 public override void WriteFieldBegin(TField field)
 {
     this.WriteJSONInteger((long)field.ID);
     this.WriteJSONObjectStart();
     this.WriteJSONString(TJSONProtocol.GetTypeNameForTypeID(field.Type));
 }