Skip to main content

MoveLocation

data class MoveLocation(var package: ObjectId, var module: String, var function: UShort, var instruction: UShort, var functionName: String? = null) : Disposable

Location in move bytecode where an error occurred

BCS

The BCS serialized form for this type is defined by the following ABNF:

move-location = object-id identifier u16 u16 (option identifier)

Constructors

MoveLocationconstructor(package: ObjectId, module: String, function: UShort, instruction: UShort, functionName: String? = null)

Properties

NameSummary
functionvar function: UShort
The function index
functionNamevar functionName: String?
The name of the function if available
instructionvar instruction: UShort
Index into the code stream for a jump. The offset is relative to the beginning of the instruction stream.
modulevar module: String
The module name
packagevar package: ObjectId
The package id

Functions

NameSummary
destroyopen override fun destroy()