invoke Wrapper Raw
open override fun invokeWrapperRaw(wrapper: Wrapper, uri: Uri, method: String, args: ByteArray?, env: ByteArray?, resolutionContext: <Error class: unknown class>?): Result<ByteArray>
Invoke a wrapper using an instance of the wrapper.
Return
A Result containing a MsgPack encoded byte array or an error.
Parameters
wrapper
An instance of a Wrapper to invoke.
uri
The URI of the wrapper to be invoked.
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
resolution Context
The FfiUriResolutionContext to be used during URI resolution, or null for a default context. The caller owns resolutionContext and is responsible for closing it to prevent a memory leak.