bendy icon indicating copy to clipboard operation
bendy copied to clipboard

Actually allow FromBencode to return references to the input stream

Open thequux opened this issue 6 years ago • 0 comments

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>

thequux avatar Feb 26 '19 10:02 thequux