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

Actually allow FromBencode to return references to the input stream #18

Open
thequux opened this issue Feb 26, 2019 · 0 comments
Open

Comments

@thequux
Copy link
Contributor

thequux commented Feb 26, 2019

Input streams with large blocks of binary data should be decodable without copying their contents.

This is probably best done by making FromBencode take 'ser (the lifetime of the data being deserialized) as a parameter, thus we could have impls for &'ser [u8], Cow<'ser, [u8]>, and (possibly) &'ser str and Cow<'ser, str>

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