Skip to content
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

Feature Suggestion: support stream #30

Open
beenotung opened this issue Jun 9, 2020 · 0 comments
Open

Feature Suggestion: support stream #30

beenotung opened this issue Jun 9, 2020 · 0 comments

Comments

@beenotung
Copy link

It would be more efficient if smart-buffer can be used around readable stream and writeable stream.

A potential use case is to append a stream of objects encoded by msgpack (write the length, then write the buffer for each object). The stream can be written to a file or socket.
Then the other side can decode the stream of length and buffer (then decoded into object by msgpack).

Currently, smart-buffer only support decoding from a buffer, which require the complete binary data to be read from the disk or received from the socket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant