mmap

package
v0.0.0-...-182e67f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReaderAt

type ReaderAt interface {

	// ReadAt implements the io.ReaderAt interface.
	ReadAt([]byte, int64) (int, error)

	// At returns the byte at index i.
	At(i int) byte

	// Len returns the length of the underlying memory-mapped file.
	Len() int

	// Close closes the reader.
	Close() error
}

ReaderAt reads a memory-mapped file.

func New

func New(f *os.File) (ReaderAt, error)

New memory-maps the given file for reading.

func Open

func Open(filename string) (ReaderAt, error)

Open memory-maps the named file for reading.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL