Пример #1
0
        public Task <string> EncodeAuthRespAsync(IntPtr auth, ref AuthReq req, uint reqId, bool isGranted)
        {
            var reqNative = req.ToNative();

            var(ret, userData) = BindingUtils.PrepareTask <string>();
            EncodeAuthRespNative(auth, ref reqNative, reqId, isGranted, userData, DelegateOnFfiResultStringCb);
            reqNative.Free();
            return(ret);
        }
Пример #2
0
        public Task <(uint, string)> EncodeAuthReqAsync(ref AuthReq req)
        {
            var reqNative = req.ToNative();

            var(ret, userData) = BindingUtils.PrepareTask <(uint, string)>();
            EncodeAuthReqNative(ref reqNative, userData, DelegateOnFfiResultUIntStringCb);
            reqNative.Free();
            return(ret);
        }