Example #1
0
 static void OnFfiResultAppAccessListCb(IntPtr userData, IntPtr result, IntPtr appAccessPtr, UIntPtr appAccessLen)
 {
     BindingUtils.CompleteTask(
         userData,
         Marshal.PtrToStructure <FfiResult>(result),
         () => BindingUtils.CopyToObjectList <AppAccess>(appAccessPtr, (int)appAccessLen));
 }
Example #2
0
 static void OnFfiResultAccountInfoCb(IntPtr userData, IntPtr result, IntPtr accountInfo)
 {
     BindingUtils.CompleteTask(
         userData,
         Marshal.PtrToStructure <FfiResult>(result),
         () => Marshal.PtrToStructure <AccountInfo>(accountInfo));
 }
Example #3
0
 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());
 }
Example #4
0
 static void OnFfiResultStringCb(IntPtr userData, IntPtr result, string response)
 {
     BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result), () => response);
 }
Example #5
0
 static void OnFfiResultCb(IntPtr userData, IntPtr result)
 {
     BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result));
 }