DisassemblyPosition

data class DisassemblyPosition(var offset: Int = 0, var address: Long = 0)(source)

Position tracker for iterative disassembly.

Maintains the current offset in the code buffer and the corresponding virtual address.

Constructors

Link copied to clipboard
constructor(offset: Int = 0, address: Long = 0)

Properties

Link copied to clipboard

Current virtual address

Link copied to clipboard
var offset: Int

Current byte offset in the code buffer

Functions

Link copied to clipboard
fun advance(bytes: Int)

Advance position by the given number of bytes.

Link copied to clipboard
fun hasRemaining(codeSize: Int): Boolean

Check if there are remaining bytes in the buffer.

Link copied to clipboard
fun remaining(codeSize: Int): Int

Get the number of remaining bytes.