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
{{ message }}
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
As I look to implement streams, it seems like it is excessively challenging to return a pointer from the stream read function.
Typically in stream reading (e.g. fread in C or InputStream.read in Java) the pattern is to pass a buffer into the stream read, rather than have the stream return an array of bytes.
I think that we should change streams to take a buffer from the guest to write data into, that will make the ownership semantics clearer (#7) and will also make it easier to implement.