Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }