ReaderAt reads a memory-mapped file.
Like any io.ReaderAt, clients can execute parallel ReadAt calls, but it is not safe to call Close and reading methods concurrently.
type ReaderAt struct {
// contains filtered or unexported fields
}
func Open(filename string) (*ReaderAt, error)
Open memory-maps the named file for reading.
func (r *ReaderAt) At(i int) byte
At returns the byte at index i.
func (r *ReaderAt) Close() error
Close closes the reader.
func (r *ReaderAt) Len() int
Len returns the length of the underlying memory-mapped file.
func (r *ReaderAt) ReadAt(p []byte, off int64) (int, error)
ReadAt implements the io.ReaderAt interface.