public static void Read(this IDictionary <string, string> _this, EndianReader reader) { int count = reader.ReadInt32(); for (int i = 0; i < count; i++) { string key = reader.ReadString(); string value = reader.ReadString(); _this.Add(key, value); } }
public static Tuple <bool, string> ReadTupleBoolString(this EndianReader reader) { bool value1 = reader.ReadBoolean(); string value2 = reader.ReadString(); return(new Tuple <bool, string>(value1, value2)); }
public static void Read <T>(this IDictionary <Tuple <T, long>, string> _this, EndianReader reader, Func <int, T> converter) { int count = reader.ReadInt32(); for (int i = 0; i < count; i++) { Tuple <T, long> key = reader.ReadTupleTLong(converter); string value = reader.ReadString(); _this.Add(key, value); } }
public static void Read(this IDictionary <Tuple <int, long>, string> _this, EndianReader reader) { int count = reader.ReadInt32(); for (int i = 0; i < count; i++) { Tuple <int, long> key = reader.ReadTupleInt32Int64(); string value = reader.ReadString(); _this.Add(key, value); } }