public override void wsc(int i, int h, MappedOutStream @out) { container.Container[] d = ((P0)owner).Data; MapType <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> > type = (MapType <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> >) this.type.cast <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> >(); de.ust.skill.common.csharp.api.FieldType keyType = type.keyType; de.ust.skill.common.csharp.api.FieldType valueType = type.valueType; for (; i != h; i++) { (([email protected]) this.type).writeSingleField(d[i].f, @out); } }
public override void rsc(int i, int h, MappedInStream @in) { container.Container[] d = ((P0)owner).Data; MapType <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> > type = (MapType <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> >) this.type.cast <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> >(); de.ust.skill.common.csharp.api.FieldType keyType = type.keyType; de.ust.skill.common.csharp.api.FieldType valueType = type.valueType; for (; i != h; i++) { d[i].f = castMap <string, System.Collections.Generic.Dictionary <long, long>, System.Object, System.Object>((Dictionary <System.Object, System.Object>)(([email protected]) this.type).readSingleField(@in)); } }
public override void osc(int i, int h) { MapType <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> > type = (MapType <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> >) this.type.cast <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> >(); de.ust.skill.common.csharp.api.FieldType keyType = type.keyType; de.ust.skill.common.csharp.api.FieldType valueType = type.valueType; container.Container[] d = ((P0)owner.basePool).Data; long result = 0L; for (; i != h; i++) { System.Collections.Generic.Dictionary <System.String, System.Collections.Generic.Dictionary <System.Int64, System.Int64> > v = castMap <string, System.Collections.Generic.Dictionary <long, long>, string, System.Collections.Generic.Dictionary <long, long> >(d[i].f); if (null == v || v.Count == 0) { result++; } else { string[] keysArray = new string[v.Keys.Count]; v.Keys.CopyTo(keysArray, 0); ICollection keysList = new List <object>(); foreach (object key in keysArray) { ((List <object>)keysList).Add(key); } System.Collections.Generic.Dictionary <long, long>[] valuesArray = new System.Collections.Generic.Dictionary <long, long> [v.Values.Count]; v.Values.CopyTo(valuesArray, 0); ICollection valuesList = new List <object>(); foreach (object value in valuesArray) { ((List <object>)valuesList).Add(value); } result += V64.singleV64Offset(v.Count); result += (([email protected])keyType).calculateOffset(keysList); result += (([email protected])valueType).calculateOffset(valuesList); } } offset += result; }