private void InitDelegates() { _mkdirDelegate = new uv_fs_cb(this.OnCreateDirectory); _rmdirDelegate = new uv_fs_cb(this.OnRemoveDirectory); _statDelegate = new uv_fs_cb(this.OnStat); _deleteDelegate = new uv_fs_cb(this.OnDelete); }
private void InitDelegates() { _openDelegate = new uv_fs_cb(this.OnOpen); _closeDelegate = new uv_fs_cb(this.OnClose); _readDelegate = new uv_fs_cb(this.OnRead); _writeDelegate = new uv_fs_cb(this.OnWrite); }
private static extern int uv_fs_rename(IntPtr loop, IntPtr req, string path, string newPath, uv_fs_cb callback);
private static extern int uv_fs_readdir(IntPtr loop, IntPtr req, string path, int flags, uv_fs_cb callback);
internal static extern int uv_fs_link(IntPtr loop, IntPtr req, string path, string new_path, uv_fs_cb cb);
private static extern int uv_fs_ftruncate(IntPtr loop, IntPtr req, int fd, long offset, uv_fs_cb callback);
internal static extern int uv_fs_write(IntPtr loop, IntPtr req, uv_file file, uv_buf_t[] bufs, int nbufs, long offset, uv_fs_cb cb);
internal static extern int uv_fs_rmdir(IntPtr loop, IntPtr req, string path, uv_fs_cb cb);
private static extern int uv_fs_ftruncate(IntPtr loop, IntPtr req, IntPtr file, long offset, uv_fs_cb callback);
private static extern int uv_fs_fdatasync(IntPtr loop, IntPtr req, IntPtr file, uv_fs_cb callback);
private static extern int uv_fs_write(IntPtr loop, IntPtr req, IntPtr file, IntPtr buf, IntPtr length, long offset, uv_fs_cb fs_cb);
private static int uv_fs_open(Loop loop, IntPtr req, string path, FileAccessMode rw, FileOpenMode open, FilePermissions permissions, uv_fs_cb cb) { return Uvi.uv_fs_open(loop.Handle, req, path, (int)rw | (int)open, (int)permissions, cb); }
internal static extern int uv_fs_futime(IntPtr loop, IntPtr req, uv_file file, double atime, double mtime, uv_fs_cb cb);
internal static extern int uv_fs_readdir(IntPtr loop, IntPtr req, string path, int flags, uv_fs_cb cb);
private static extern int uv_fs_sendfile(IntPtr loop, IntPtr req, IntPtr out_fd, IntPtr in_fd, int offset, int length, uv_fs_cb callback);
internal static extern int uv_fs_unlink(IntPtr loop, IntPtr req, string path, uv_fs_cb cb);
private static extern int uv_fs_open(IntPtr loop, IntPtr req, string path, int flags, int mode, uv_fs_cb callback);
internal static extern int uv_fs_fstat(IntPtr loop, IntPtr req, uv_file file, uv_fs_cb cb);
private static extern int uv_fs_close(IntPtr loop, IntPtr req, IntPtr file, uv_fs_cb callback);
private static extern int uv_fs_write(IntPtr loop, IntPtr req, int fd, IntPtr buf, IntPtr length, long offset, uv_fs_cb fs_cb);
internal static extern int uv_fs_open(IntPtr loop, IntPtr req, string path, int flags, int mode, uv_fs_cb cb);
private static extern int uv_fs_rmdir(IntPtr loop, IntPtr req, string path, uv_fs_cb callback);
internal static extern int uv_fs_close(IntPtr loop, IntPtr req, uv_file file, uv_fs_cb cb);
internal static extern int uv_fs_ftruncate(IntPtr loop, IntPtr req, uv_file file, long offset, uv_fs_cb cb);
internal static extern int uv_fs_rename(IntPtr loop, IntPtr req, string path, string new_path, uv_fs_cb cb);
internal static extern int uv_fs_stat(IntPtr loop, IntPtr req, string path, uv_fs_cb cb);
internal static extern int uv_fs_sendfile(IntPtr loop, IntPtr req, uv_file out_fd, uv_file in_fd, long in_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalType = "Libuv.SizeTMarshaler")] SizeT length, uv_fs_cb cb);
internal static extern int uv_fs_fdatasync(IntPtr loop, IntPtr req, uv_file file, uv_fs_cb cb);
internal static extern int uv_fs_utime(IntPtr loop, IntPtr req, string path, double atime, double mtime, uv_fs_cb cb);
internal static extern int uv_fs_chmod(IntPtr loop, IntPtr req, string path, int mode, uv_fs_cb cb);
private static extern int uv_fs_fsync(IntPtr loop, IntPtr req, int fd, uv_fs_cb callback);
private static int uv_fs_open(Loop loop, IntPtr req, string path, FileAccessMode rw, FileOpenMode open, FilePermissions permissions, uv_fs_cb cb) { return(Uvi.uv_fs_open(loop.Handle, req, path, (int)rw | (int)open, (int)permissions, cb)); }