Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework iterating over byte sequences
This removes std::io::StringReader and std::io::ByteArrayReader, in favour of String and ByteArray providing a dedicated Bytes iterator that also implements Read. The Bytes iterator implements the new std::iter::Bytes trait. This trait is a regular iterator, but also provides the "next_byte" method to pull bytes out of the iterator without wrapping them in an Option type. This makes the Bytes iterator more efficient when dealing with large input streams. Changelog: changed
- Loading branch information
1 parent
9d0884c
commit 6620c44
Showing
7 changed files
with
251 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.