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)); }
public UvStatArgs(int error, UvStat stat) : base(error) { _stat = stat; }
public UvStatArgs(int error, IntPtr stat) : this(error, UvStat.Create(stat)) { }