예제 #1
0
        unsafe public static void Stat(Loop loop, string path, Action <Exception> callback)
        {
            var fsr = new FileSystemRequest();

            fsr.Callback = (ex, fsr2) => {
                // TODO: do this
                lin_stat *stats = (lin_stat *)fsr.Pointer;

                if (callback != null)
                {
                    callback(ex);
                }
            };
            int r = uv_fs_stat(loop.Handle, fsr.Handle, path, FileSystemRequest.StaticEnd);

            Ensure.Success(r, loop);
        }
예제 #2
0
 unsafe private static extern void uv_fs_req_stat(IntPtr req, lin_stat *stat);