private int FreeRequest(IntPtr req) { var ret = Uvi.uv_fs_req_result(req); Uvi.uv_fs_req_cleanup(req); this.Loop.Requests.Delete(req); return(ret); }
private UvStatArgs FreeStatRequest(IntPtr req) { var ret = Uvi.uv_fs_req_result(req); var stat = UvStat.Create(ret == 0 ? Uvi.uv_fs_req_stat(req) : IntPtr.Zero); Uvi.uv_fs_req_cleanup(req); this.Loop.Requests.Delete(req); return(new UvStatArgs(ret, stat)); }
private UvDataArgs FreeReadRequest(IntPtr req) { var ret = Uvi.uv_fs_req_result(req); Uvi.uv_fs_req_cleanup(req); var data = this.Loop.Requests.CopyAndDelete(req, (int)ret); return(new UvDataArgs(ret, data)); }