uvw icon indicating copy to clipboard operation
uvw copied to clipboard

Issuing multiple filesystem operations at a time with user supplied buffer

Open ReimuNotMoe opened this issue 1 year ago • 1 comments
trafficstars

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() in file_req (it's the user's responsibility to manage its lifecycle) ? In this way, multiple requests can be issued sequentially.

ReimuNotMoe avatar Dec 04 '23 10:12 ReimuNotMoe

Hi, sorry for the late reply. As far as I can tell, file_req::write already accepts an user defined buffer. Am I wrong?

skypjack avatar Dec 11 '23 10:12 skypjack

Closing this issue as starving. Feel free to reopen it or continue the discussion here if needed. Thanks.

skypjack avatar Apr 18 '24 07:04 skypjack