public static Tuple <byte, float> ReadTupleByteSingle(this EndianReader reader)
        {
            byte  value1 = reader.ReadByte();
            float value2 = reader.ReadSingle();

            return(new Tuple <byte, float>(value1, value2));
        }
        public static Tuple <char, float> ReadTupleCharSingle(this EndianReader reader)
        {
            char  value1 = Convert.ToChar(reader.ReadByte());
            float value2 = reader.ReadSingle();

            return(new Tuple <char, float>(value1, value2));
        }
        public static Tuple <int, float> ReadTupleInt32Single(this EndianReader reader)
        {
            int   value1 = reader.ReadInt32();
            float value2 = reader.ReadSingle();

            return(new Tuple <int, float>(value1, value2));
        }
示例#4
0
        public static void ReadSafe(this IDictionary <Tuple <ushort, ushort>, float> _this, EndianReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                Tuple <ushort, ushort> key = reader.ReadTupleUInt16UInt16();
                float value = reader.ReadSingle();
                _this[key] = value;
            }
        }
示例#5
0
        public static void Read(this IDictionary <Tuple <byte, byte>, float> _this, EndianReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                Tuple <byte, byte> key = reader.ReadTupleByteByte();
                float value            = reader.ReadSingle();
                _this.Add(key, value);
            }
        }
示例#6
0
        public static void Read(this IDictionary <string, float> _this, EndianReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                string key   = reader.ReadString();
                float  value = reader.ReadSingle();
                _this.Add(key, value);
            }
        }