示例#1
0
        private void Apply()
        {
            CheckDirty();

            var dirtyCells = TableData.SelectMany(s => s).Where(s => s.IsDirty);

            foreach (var cell in dirtyCells)
            {
                var endian = this._table.Scaling.Endian;
                var bytes  = cell.ByteValue.ToArray();

                bytes.ReverseBytes(endian);

                _tableReader.ApplyChanges(cell.Address.GetValueOrDefault(), bytes);
            }
        }