Closed ReimuNotMoe closed 4 months ago
Hi, sorry for the late reply.
As far as I can tell, file_req::write
already accepts an user defined buffer. Am I wrong?
Closing this issue as starving. Feel free to reopen it or continue the discussion here if needed. Thanks.
If I understand correctly, the
uv_fs_read()
/uv_fs_write()
can be invoked unlimited times per event loop tick, unlike their socket counterparts.So is it possible to let the user supply the buffer for
read()
/write()
infile_req
(it's the user's responsibility to manage its lifecycle) ? In this way, multiple requests can be issued sequentially.