You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
908 B
34 lines
908 B
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; }
|
|
}
|
|
}
|