Skip to main content

MoveLocation

MoveLocation​

struct MoveLocation

Location in move bytecode where an error occurred

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

init(package:module:function:instruction:functionName:)​

init(package: ObjectId, module: String, function: UInt16, instruction: UInt16, functionName: String? = nil)

function​

var function: UInt16

The function index

functionName​

var functionName: String?

The name of the function if available

instruction​

var instruction: UInt16

Index into the code stream for a jump. The offset is relative to the beginning of the instruction stream.

module​

var module: String

The module name

package​

var package: ObjectId

The package id

toBcs()​

func toBcs() throws -> Data

Convert this type to BCS encoded bytes.

toDisplayString()​

func toDisplayString() -> String

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

toJson()​

func toJson() throws -> String

Convert this type to a JSON encoded string.