mmap

package
v0.0.0-...-d2438c5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 5 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.

Source Files

  • mmap.go
  • mmap_unix.go

Jump to

Keyboard shortcuts

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