Skip to main content

MoveLocation

Namespace: IotaSdk

Location in move bytecode where an error occurred

BCS

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

public record class MoveLocation : System.IDisposable, System.IEquatable`1[[IotaSdk.MoveLocation, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → MoveLocation
Implements IDisposable, IEquatable<MoveLocation>
Attributes NullableContextAttribute, NullableAttribute

Properties​

Package​

The package id

public ObjectId Package { get; init; }

Property Value​

ObjectId

Module​

The module name

public string Module { get; init; }

Property Value​

String

Function​

The function index

public ushort Function { get; init; }

Property Value​

UInt16

Instruction​

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

public ushort Instruction { get; init; }

Property Value​

UInt16

FunctionName​

The name of the function if available

public string? FunctionName { get; init; }

Property Value​

String

Constructors​

MoveLocation(ObjectId, String, UInt16, UInt16, String)​

Location in move bytecode where an error occurred

BCS

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

public MoveLocation(ObjectId Package, string Module, ushort Function, ushort Instruction, string? FunctionName = null)

Parameters​

Package ObjectId
The package id

Module String
The module name

Function UInt16
The function index

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

FunctionName String?
The name of the function if available

Methods​

Dispose()​

public void Dispose()

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToDisplayString()​

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.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException