It seems that io.SizedReaderAt was added temporarily during the 1.7 cycle, 
but promptly removed.  I see an standing github issue for it (15822) but it 
doesn't seem to have much activity.  

I would like to express my hope that it comes back (and hopefully others 
will to).  A use case that I am interested in is turning a ReaderAt into a 
Reader, which is currently non-trivial to convert.  The io package has a 
SectionReader, but to create one of those you need to know the size, which 
a plain ReaderAt won't provide.

There are some other places in the API that would benefit from such a 
class, such as the archive/zip package.  Currently, it is not possible to 
read from an in memory Zip file, because the only method to open zips is 
OpenReader(name string) !?  I understand that the index is at the back of 
the file, so a plain reader can't be passed in.  However, a SizedReaderAt 
would conveniently fit as a zip Reader, since it know the size in advance.  


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to