Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public override void WriteSetBegin(TSet set)
 {
     this.WriteJSONArrayStart();
     this.WriteJSONString(TJSONProtocol.GetTypeNameForTypeID(set.ElementType));
     this.WriteJSONInteger((long)set.Count);
 }
Ejemplo n.º 3
0
 public override void WriteFieldBegin(TField field)
 {
     this.WriteJSONInteger((long)field.ID);
     this.WriteJSONObjectStart();
     this.WriteJSONString(TJSONProtocol.GetTypeNameForTypeID(field.Type));
 }