aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/stream.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/stream.rst b/docs/src/stream.rst
index 7989cd4f..de492b35 100644
--- a/docs/src/stream.rst
+++ b/docs/src/stream.rst
@@ -173,6 +173,10 @@ API
uv_write(&req1, stream, a, 2, cb);
uv_write(&req2, stream, b, 2, cb);
+ .. note::
+ The memory pointed to by the buffers must remain valid until the callback gets called.
+ This also holds for :c:func:`uv_write2`.
+
.. c:function:: int uv_write2(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t* send_handle, uv_write_cb cb)
Extended write function for sending handles over a pipe. The pipe must be