Documentation ¶
Overview ¶
Package mmap provides a way to memory-map a file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenReaderAt ¶
type OpenReaderAt struct {
// contains filtered or unexported fields
}
OpenReaderAt 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.
func Open ¶
func Open(filename string) (*OpenReaderAt, error)
Open memory-maps the named file for reading.
func (*OpenReaderAt) Bytes ¶
func (r *OpenReaderAt) Bytes() []byte
func (*OpenReaderAt) Len ¶
func (r *OpenReaderAt) Len() int
Len returns the length of the underlying memory-mapped file.
Click to show internal directories.
Click to hide internal directories.