예제 #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));
 }
예제 #2
0
 static void OnFfiResultAccountInfoCb(IntPtr userData, IntPtr result, IntPtr accountInfo)
 {
     BindingUtils.CompleteTask(
         userData,
         Marshal.PtrToStructure <FfiResult>(result),
         () => Marshal.PtrToStructure <AccountInfo>(accountInfo));
 }
예제 #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());
 }
예제 #4
0
 static void OnFfiResultStringCb(IntPtr userData, IntPtr result, string response)
 {
     BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result), () => response);
 }
예제 #5
0
 static void OnFfiResultCb(IntPtr userData, IntPtr result)
 {
     BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result));
 }