public Task <string> EncodeContainersRespAsync(IntPtr auth, ref ContainersReq req, uint reqId, bool isGranted) { var reqNative = req.ToNative(); var(ret, userData) = BindingUtils.PrepareTask <string>(); EncodeContainersRespNative(auth, ref reqNative, reqId, isGranted, userData, DelegateOnFfiResultStringCb); reqNative.Free(); return(ret); }
public Task <(uint, string)> EncodeContainersReqAsync(ref ContainersReq req) { var reqNative = req.ToNative(); var(ret, userData) = BindingUtils.PrepareTask <(uint, string)>(); EncodeContainersReqNative(ref reqNative, userData, DelegateOnFfiResultUIntStringCb); reqNative.Free(); return(ret); }