encoding_rs_io icon indicating copy to clipboard operation
encoding_rs_io copied to clipboard

Add into_inner method to access inner buffer

Open boudra opened this issue 3 years ago • 0 comments

This implements a into_inner method that returns the inner buffer, like BufReader does.

My use case for this was needing to seek the inner reader, I tried implementing Seek but there were complications when clearing all the internal buffers and keeping track of BOM detections, so I thought it would be easier to just expose this method and then seek the reader in my own code, which could cover other use cases where access to the inner reader is needed.

boudra avatar Oct 09 '22 08:10 boudra