low-gc-membuffers
low-gc-membuffers copied to clipboard
Add convenience `InputStream` implementations, to read from streamy byte buffer
To improve interoperability, it'd be good to add InputStream
implementations.
Since it is byte-oriented, it is only applicable to byte-based buffers; and probably only streamy ones.
One variation is that of what to do when all current content has been read: so most likely two impls should be provided:
- "Snapshot" variant which considers end of content to be end-of-input
- Blocking variant that blocks when it runs out of content, waking up if new content is added -- this works bit like a pipe.