public static void Write(this EndianWriter writer, Tuple <int, long> value) { writer.Write(value.Item1); writer.Write(value.Item2); }
public static void Write <T>(this IReadOnlyDictionary <Tuple <T, long>, string> _this, EndianWriter writer, Func <T, int> converter) { writer.Write(_this.Count); foreach (var kvp in _this) { writer.Write(kvp.Key, converter); writer.Write(kvp.Value); } }
public static void Write <T>(this EndianWriter writer, Tuple <T, long> value, Func <T, int> converter) { writer.Write(converter(value.Item1)); writer.Write(value.Item2); }
public static void Write(this IReadOnlyDictionary <Tuple <int, long>, string> _this, EndianWriter writer) { writer.Write(_this.Count); foreach (var kvp in _this) { writer.Write(kvp.Key); writer.Write(kvp.Value); } }