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