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); }
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); }