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

Consider adding support for reading into uninitialized buffers via the buffer crate #628

Closed
wants to merge 2 commits into from

Conversation

tbu-
Copy link
Contributor

@tbu- tbu- commented Jul 12, 2017

This will allow users of this library to receive data from the network
into uninitialized buffers, like an empty ArrayVec or a Vec with
remaining capacity.

See also https://www.reddit.com/r/rust/comments/6md04j/how_to_create_variable_length_byte_buffer/dk2hjmz/?context=3.

This is just a suggestion, what do you think about it?

tbu- added 2 commits July 12, 2017 16:02
This will allow users of this library to receive data from the network
into uninitialized buffers, like an empty `ArrayVec` or a `Vec` with
remaining capacity.
@carllerche
Copy link
Member

Thanks for the suggestion. I'd say that this is outside the scope of Mio.

It looks like the buffer crate has a similar goal as the bytes crate, which mio initially depended on. Support was removed to provide a more minimal API close to std.

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

Successfully merging this pull request may close these issues.

2 participants