コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="kind">Code kind</param>
 /// <param name="address">Address of block</param>
 /// <param name="code">Raw code</param>
 /// <param name="ilOffset">IL offset or -1 if unknown</param>
 public DbgDotNetNativeCodeBlock(NativeCodeBlockKind kind, ulong address, ArraySegment <byte> code, int ilOffset)
 {
     Kind     = kind;
     Address  = address;
     Code     = code;
     ILOffset = ilOffset;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="kind">Code kind</param>
 /// <param name="address">Address of block</param>
 /// <param name="code">Raw code</param>
 /// <param name="comment">Block comment or null. It can contain multiple lines</param>
 public NativeCodeBlock(NativeCodeBlockKind kind, ulong address, ArraySegment <byte> code, string comment)
 {
     Kind    = kind;
     Address = address;
     Code    = code;
     Comment = comment;
 }
コード例 #3
0
 public BlockInfo(TargetKind targetKind, NativeCodeBlockKind kind, ulong address, string?comment)
 {
     TargetKind   = targetKind;
     Kind         = kind;
     Address      = address;
     Comment      = comment;
     Instructions = new List <X86InstructionInfo>();
 }
コード例 #4
0
 public X86Block(NativeCodeBlockKind kind, ulong address, string comment, string label, FormatterOutputTextKind labelKind, X86InstructionInfo[] instructions)
 {
     Kind         = kind;
     Address      = address;
     Comment      = comment;
     Label        = label;
     LabelKind    = labelKind;
     Instructions = instructions ?? throw new ArgumentNullException(nameof(instructions));
 }