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