File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ Data types
21
21
22
22
Union of all handle types.
23
23
24
+ .. c :type :: void (*uv_alloc_cb)(uv_handle_t * handle, size_t suggested_size, uv_buf_t * buf)
25
+
26
+ Type definition for callback passed to :c:func: `uv_read_start ` and
27
+ :c:func: `uv_udp_recv_start `. The user must fill the supplied :c:type: `uv_buf_t `
28
+ structure with whatever size, as long as it's > 0. A suggested size (65536 at the moment)
29
+ is provided, but it doesn't need to be honored. Setting the buffer's length to 0
30
+ will trigger a ``UV_ENOBUFS `` error in the :c:type: `uv_udp_recv_cb ` or
31
+ :c:type: `uv_read_cb ` callback.
32
+
24
33
.. c :type :: void (*uv_close_cb)(uv_handle_t * handle)
25
34
26
35
Type definition for callback passed to :c:func: `uv_close `.
You can’t perform that action at this time.
0 commit comments