18 lines
371 B
C#
18 lines
371 B
C#
using System;
|
|
|
|
namespace Axiom.Interpreter
|
|
{
|
|
public class CapturedCode
|
|
{
|
|
private readonly byte[] codeBytes;
|
|
|
|
public CapturedCode(byte[] codeBytes)
|
|
{
|
|
this.codeBytes = codeBytes ?? throw new ArgumentNullException(nameof(codeBytes));
|
|
}
|
|
public int Length => codeBytes.Length;
|
|
|
|
public byte[] Bytes => (byte[])codeBytes;
|
|
}
|
|
}
|