private static void OnFfiResultAppAccessListCb(IntPtr userData, IntPtr result, IntPtr appAccessPtr, UIntPtr appAccessLen) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => BindingUtils.CopyToObjectList <AppAccess>(appAccessPtr, (int)appAccessLen)); }
private static void OnFfiResultXorUrlEncoderCb(IntPtr userData, IntPtr result, IntPtr xorurlEncoder) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => new XorUrlEncoder(Marshal.PtrToStructure <XorUrlEncoderNative>(xorurlEncoder))); }
private static void OnFfiResultAccountInfoCb(IntPtr userData, IntPtr result, IntPtr accountInfo) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => Marshal.PtrToStructure <AccountInfo>(accountInfo)); }
private static void OnFfiResultByteListULongCb(IntPtr userData, IntPtr result, IntPtr contentPtr, UIntPtr contentLen) { BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => BindingUtils.CopyToByteList(contentPtr, (int)contentLen)); }
private 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()); }
private static void OnFfiResultStringBlsKeyPairCb( IntPtr userData, IntPtr result, string xorUrl, IntPtr safeKey) => BindingUtils.CompleteTask( userData, Marshal.PtrToStructure <FfiResult>(result), () => (xorUrl, Marshal.PtrToStructure <BlsKeyPair>(safeKey)));
private static void OnFfiResultStringCb(IntPtr userData, IntPtr result, string response) { BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result), () => response); }
private static void OnFfiResultCb(IntPtr userData, IntPtr result) { BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result)); }
private static void OnFfiResultStringCb(IntPtr userData, IntPtr result, string encodedXorUrl) { BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result), () => encodedXorUrl); }
private static void OnFfiResultUIntStringCb(IntPtr userData, IntPtr result, uint reqId, string encoded) { BindingUtils.CompleteTask(userData, Marshal.PtrToStructure <FfiResult>(result), () => (reqId, encoded)); }