public static Tuple <char, float> ReadTupleCharFloat(this EndianStream stream) { char value1 = Convert.ToChar(stream.ReadByte()); float value2 = stream.ReadSingle(); return(new Tuple <char, float>(value1, value2)); }
public static void Read(this IDictionary <Tuple <char, char>, float> _this, EndianStream stream) { int count = stream.ReadInt32(); for (int i = 0; i < count; i++) { Tuple <char, char> key = stream.ReadTupleCharChar(); float value = stream.ReadSingle(); _this.Add(key, value); } }
public static void Read(this IDictionary <string, float> _this, EndianStream stream) { int count = stream.ReadInt32(); for (int i = 0; i < count; i++) { string key = stream.ReadStringAligned(); float value = stream.ReadSingle(); _this.Add(key, value); } }