You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this would be difficult to add, because file descriptors at the OS level generally do not support peeking. Peeking requires a layer that buffers input from a file descriptor, and adding that to Zuo would be a big change and have all sorts of complicated interactions with processes and pipes.
Ah, that's a pity 🥲.
I still think this would be a very useful procedure, can we keep it open
for the possibility of implementing it in the future?
Thank you very much for your efforts anyway :)
(fd-peek handle amount) → (or/c string? eof) handle : handle? amount : (or/c integer? eof 'avail)
I hope that the
handle
can also be peeked. Unlikefd-read
, which consumes data, it retains the data and can be read/peek next time.I don't know if this makes sense, if I got anything wrong, please correct me.
Thank you for your consideration!
The text was updated successfully, but these errors were encountered: