static void OnFfiResultAppAccessListCb(IntPtr userData, IntPtr result, IntPtr appAccessPtr, UIntPtr appAccessLen) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => BindingUtils.CopyToObjectList <AppAccess>(appAccessPtr, (int)appAccessLen)); }
static void OnFfiResultAccountInfoCb(IntPtr userData, IntPtr result, IntPtr accountInfo) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => Marshal.PtrToStructure <AccountInfo>(accountInfo)); }
static void OnFfiResultRegisteredAppListCb(IntPtr userData, IntPtr result, IntPtr registeredAppPtr, UIntPtr registeredAppLen) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => BindingUtils.CopyToObjectList <RegisteredAppNative>(registeredAppPtr, (int)registeredAppLen) .Select(native => new RegisteredApp(native)).ToList()); }
static void OnFfiResultStringCb(IntPtr userData, IntPtr result, string response) { BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result), () => response); }
static void OnFfiResultCb(IntPtr userData, IntPtr result) { BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result)); }