mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
0ab2b81261
* 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.
34 lines
908 B
C#
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; }
|
|
}
|
|
}
|