2022-05-26 10:47:31 +00:00
|
|
|
namespace Elsa.Expressions.Models;
|
2022-01-04 08:42:12 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
2022-06-04 16:52:58 +00:00
|
|
|
/// Represents a piece of memory within a memory register
|
2022-01-04 08:42:12 +00:00
|
|
|
/// </summary>
|
2022-06-04 18:01:20 +00:00
|
|
|
public class MemoryBlock
|
2022-01-04 08:42:12 +00:00
|
|
|
{
|
2022-12-23 15:05:37 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Constructor.
|
|
|
|
|
/// </summary>
|
2022-06-04 18:01:20 +00:00
|
|
|
public MemoryBlock()
|
2022-01-04 08:42:12 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-23 15:05:37 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Constructor.
|
|
|
|
|
/// </summary>
|
2025-03-31 16:11:14 +00:00
|
|
|
public MemoryBlock(object? value, object? metadata = null)
|
2022-01-04 08:42:12 +00:00
|
|
|
{
|
|
|
|
|
Value = value;
|
2022-12-23 15:05:37 +00:00
|
|
|
Metadata = metadata;
|
2022-01-04 08:42:12 +00:00
|
|
|
}
|
|
|
|
|
|
2022-12-23 15:05:37 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The value stored in this block.
|
|
|
|
|
/// </summary>
|
2022-01-04 08:42:12 +00:00
|
|
|
public object? Value { get; set; }
|
2022-12-23 15:05:37 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Optional metadata about this block.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public object? Metadata { get; set; }
|
2022-01-04 08:42:12 +00:00
|
|
|
}
|