/* Copyright (C) 2014-2019 de4dot@gmail.com This file is part of dnSpy dnSpy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. dnSpy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with dnSpy. If not, see . */ namespace dnSpy.Contracts.Hex { /// /// A change /// public abstract class HexChange { /// /// Constructor /// protected HexChange() { } /// /// Gets the difference in buffer length after the change /// public abstract long Delta { get; } /// /// Gets the new data /// public abstract byte[] NewData { get; } /// /// Gets the new position after the hex change /// public abstract HexPosition NewPosition { get; } /// /// Gets the new end position after the hex change /// public abstract HexPosition NewEnd { get; } /// /// Gets the new length /// public abstract HexPosition NewLength { get; } /// /// Gets the span after the hex change /// public abstract HexSpan NewSpan { get; } /// /// Gets the old data /// public abstract byte[] OldData { get; } /// /// Gets the old position before the hex change /// public abstract HexPosition OldPosition { get; } /// /// Gets the old end position before the hex change /// public abstract HexPosition OldEnd { get; } /// /// Gets the old length /// public abstract HexPosition OldLength { get; } /// /// Gets the span before the hex change /// public abstract HexSpan OldSpan { get; } } }