Ejemplo n.º 1
0
 public static void Write(this IReadOnlyDictionary <int, int> _this, EndianWriter writer)
 {
     writer.Write(_this.Count);
     foreach (var kvp in _this)
     {
         writer.Write(kvp.Key);
         writer.Write(kvp.Value);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public static void Write(this EndianWriter writer, Tuple <int, long> value)
 {
     writer.Write(value.Item1);
     writer.Write(value.Item2);
 }
Ejemplo n.º 4
0
 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);
 }