wrap Invoke
suspend fun wrapInvoke(method: String, args: ByteArray?, env: ByteArray?, invoker: Invoker): Result<ByteArray>
Invokes a method of the plugin module.
Return
A Result instance containing either the result as a byte array or an error if the invocation fails.
Parameters
method
The name of the method to invoke.
args
The input arguments as a byte array.
env
The environment as a byte array.
invoker
The Invoker instance to be used during the invocation.