This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.
For my last task I was moving to an offset value in huge byte stream using reader.Seek(int64(offset), whence) and reading the bytes there. But it was not good for the performance because I was moving in a big file(~1gigs). Then I came to know about io.SectionReader and it made my life easier and helped me delete a lot of code(isn’t that best). I create the section reader using this function:

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.