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;
            }
        }
Esempio n. 2
0
 protected EndianReader(EndianReader reader) :
     this(reader, reader.AlignPosition)
 {
 }
Esempio n. 3
0
 private EndianReader(EndianReader reader, long alignPosition) :
     this(reader.BaseStream, reader.EndianType, alignPosition)
 {
 }
Esempio n. 4
0
 protected EndianReader(EndianReader reader, long alignPosition) :
     this(reader.BaseStream, alignPosition, reader.EndianType)
 {
 }