invoke

open override fun invoke(method: String, args: List<UByte>?, env: List<UByte>?, invoker: <Error class: unknown class>): List<UByte>

Invokes a method in the Wrapper with the specified options and invoker.

Return

A list of MessagePack-encoded bytes representing the invocation result

Parameters

method

The method to be called on the wrapper.

args

Arguments for the method, encoded in the MessagePack byte format

env

Env variables for the wrapper invocation, encoded in the MessagePack byte format

invoker

The invoker will be used for any sub-invocations that occur.

Throws

FfiException

open override fun invoke(method: String, args: ByteArray?, env: ByteArray?, invoker: Invoker): Result<ByteArray>

Invokes a method in the Wrapper with the specified options and invoker.

Return

A Result containing a MsgPack encoded byte array or an error.

Parameters

method

The method to be called on the wrapper.

args

Arguments for the method, encoded in the MessagePack byte format

env

Env variables for the wrapper invocation, encoded in the MessagePack byte format

invoker

The Invoker will be used for any sub-invocations that occur.