-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
P-mediumMedium priorityMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Reader should have an extra fn that allows skipping a number of bytes. The default implementation could look something like:
fn skip(n: uint) { let _ = self.read(Vec::from_elem(n, 0u8); }
However, BufReader could implement the fn by simply updating the internal cursor. This would allow more efficient skipping w/o having to require Seek.
Metadata
Metadata
Assignees
Labels
P-mediumMedium priorityMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.