-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOHasBufFS
interface for I/O using user-supplied buffers
#46
Conversation
2fa9bf4
to
acc91a6
Compare
ioHasBufFS
IOHasBufFS
interface for I/O using user-supplied buffers
acc91a6
to
6f17aa7
Compare
Marked as draft again because of #46 (comment) |
4d894a5
to
6438163
Compare
Alright, |
Drafting this again, since we're planning on using |
6438163
to
ffceeae
Compare
335c12a
to
44675ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. In particular the new API looks good.
44675ec
to
752bb64
Compare
We require this interface in https://github.com/input-output-hk/lsm-tree, because going through
ByteString
is incompatible with the code in some places, and it's costly to allocate intermediateByteString
s instead of moving around bytes from/toPtr
s (andByteArray
s orMutableByteArray
s)Two notes:
HasFS
(for now), since I don't want to break downstream code yet.fs-sim
, but will be after a future PR that I'm already working on. I'm currently hunting a persistent bug in the pure model used for the state-machine tests. For now, I've included a couple of simple round-trip tests that exercise the new functions