MethodInvocation.fromAddresses constructor

MethodInvocation.fromAddresses(
  1. int resultAddress,
  2. int descriptorAddress,
  3. int argsAddress
)

Implementation

factory MethodInvocation.fromAddresses(
  int resultAddress,
  int descriptorAddress,
  int argsAddress,
) {
  return MethodInvocation._(
    Pointer<CallbackResult>.fromAddress(resultAddress),
    JString.fromReference(
        JGlobalReference(Pointer<Void>.fromAddress(descriptorAddress))),
    JArray.fromReference(
      const JObjectType(),
      JGlobalReference(Pointer<Void>.fromAddress(argsAddress)),
    ),
  );
}