Files
Grégoire Geis 0ab2b81261 Refactor to target .NET Standard 1.1 (#344)
* Refactor to target .NET Standard 1.1

* Added Nuget details to .csproj

* Reviewed Engine methods and docs; added own Exception type.

* Added migration guide for .NET bindings.
2018-08-02 10:49:31 +08:00

34 lines
908 B
C#

namespace Keystone
{
/// <summary>
/// Defines an encoded instruction or group of instructions.
/// </summary>
public sealed class EncodedData
{
/// <summary>
/// Constructs the encoded data.
/// </summary>
internal EncodedData(byte[] buffer, int statementCount, ulong address)
{
Buffer = buffer;
Address = address;
StatementCount = statementCount;
}
/// <summary>
/// Gets the address of the first instruction for this operation.
/// </summary>
public ulong Address { get; }
/// <summary>
/// Gets the result of an assembly operation.
/// </summary>
public byte[] Buffer { get; }
/// <summary>
/// Gets the number of statements found.
/// </summary>
public int StatementCount { get; }
}
}