Ejemplo n.º 1
0
        public static void Read(this IDictionary <Tuple <char, char>, float> _this, EndianReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                Tuple <char, char> key = reader.ReadTupleCharChar();
                float value            = reader.ReadSingle();
                _this.Add(key, value);
            }
        }
Ejemplo n.º 2
0
        public static void Read(this IDictionary <string, long> _this, EndianReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                string key   = reader.ReadStringAligned();
                long   value = reader.ReadInt64();
                _this.Add(key, value);
            }
        }
Ejemplo n.º 3
0
        public static Tuple <char, float>[] ReadTupleCharFloatArray(this EndianReader reader)
        {
            int count = reader.ReadInt32();

            Tuple <char, float>[] array = new Tuple <char, float> [count];
            for (int i = 0; i < count; i++)
            {
                Tuple <char, float> tuple = ReadTupleCharFloat(reader);
                array[i] = tuple;
            }
            return(array);
        }