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