Closed
Description
It is unclear that MemReader operates on an owned vector while BufReader on a borrowed vector. For the reader I think there is no difference between a MemReader and a BufReader. MemReader::new(
can be replaced by [1u8])BufReader::new([1u8].as_slice())
. Only the MemWriter and BufWriter differ in that MemWriter can grow the buffer.
How about this naming: BufReader
, BufWriter
, GrowableBufWriter
?
Activity
steveklabnik commentedon Jan 23, 2015
/cc @aturon
aturon commentedon Jan 23, 2015
This will be resolved during io reform.
alexcrichton commentedon Feb 11, 2015
These have all been fixed with the new
Cursor
type.Auto merge of rust-lang#12498 - y21:issue12489, r=blyxyas