Пример #1
0
        public static Tuple <char, char> ReadTupleCharChar(this EndianReader reader)
        {
            char value1 = Convert.ToChar(reader.ReadByte());
            char value2 = Convert.ToChar(reader.ReadByte());

            return(new Tuple <char, char>(value1, value2));
        }
Пример #2
0
        public static Tuple <char, float> ReadTupleCharFloat(this EndianReader reader)
        {
            char  value1 = Convert.ToChar(reader.ReadByte());
            float value2 = reader.ReadSingle();

            return(new Tuple <char, float>(value1, value2));
        }
        public static void Read(this IDictionary <string, byte> _this, EndianReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                string key   = reader.ReadStringAligned();
                byte   value = reader.ReadByte();
                _this.Add(key, value);
            }
        }