doc: add note about offset -1 in uv_fs_read/write (#3677)
This commit is contained in:
parent
fb76f210eb
commit
a855c74183
@ -218,7 +218,8 @@ API
|
||||
|
||||
.. c:function:: int uv_fs_read(uv_loop_t* loop, uv_fs_t* req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
|
||||
|
||||
Equivalent to :man:`preadv(2)`.
|
||||
Equivalent to :man:`preadv(2)`. If the `offset` argument is `-1`, then
|
||||
the current file offset is used and updated.
|
||||
|
||||
.. warning::
|
||||
On Windows, under non-MSVC environments (e.g. when GCC or Clang is used
|
||||
@ -231,7 +232,8 @@ API
|
||||
|
||||
.. c:function:: int uv_fs_write(uv_loop_t* loop, uv_fs_t* req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
|
||||
|
||||
Equivalent to :man:`pwritev(2)`.
|
||||
Equivalent to :man:`pwritev(2)`. If the `offset` argument is `-1`, then
|
||||
the current file offset is used and updated.
|
||||
|
||||
.. warning::
|
||||
On Windows, under non-MSVC environments (e.g. when GCC or Clang is used
|
||||
|
||||
Loading…
Reference in New Issue
Block a user