public Task <string> EncodeShareMDataRespAsync(IntPtr auth, ref ShareMDataReq req, uint reqId, bool isGranted) { var reqNative = req.ToNative(); var(ret, userData) = BindingUtils.PrepareTask <string>(); EncodeShareMDataRespNative(auth, ref reqNative, reqId, isGranted, userData, DelegateOnFfiResultStringCb); reqNative.Free(); return(ret); }
public Task <(uint, string)> EncodeShareMDataReqAsync(ref ShareMDataReq req) { var reqNative = req.ToNative(); var(ret, userData) = BindingUtils.PrepareTask <(uint, string)>(); EncodeShareMDataReqNative(ref reqNative, userData, DelegateOnFfiResultUIntStringCb); reqNative.Free(); return(ret); }