Table of Contents

Method Disassemble

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

Disassemble(ReadOnlySpan<byte>, ulong, int)

Disassembles an instruction

public (LazyEncodedString Disassembly, nuint InstructionByteCount) Disassemble(ReadOnlySpan<byte> instruction, ulong pc, int stringBufferSize = 1024)

Parameters

instruction ReadOnlySpan<byte>

Start of instruction stream

pc ulong

Program counter address to assume for the instruction disassembly

stringBufferSize int

Size of string buffer to use for the disassembly (default=1024)

Returns

(LazyEncodedString Disassembly, nuint InstructionByteCount)

Disassembly string and count of bytes in the instruction as a tuple