mmap

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: BSD-3-Clause, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mmap

type Mmap struct {
	// contains filtered or unexported fields
}

func Mmapf

func Mmapf(filename string, offset, length int, prot, flags int) (fd *os.File, mmap *Mmap, err error)

func Mmapfd

func Mmapfd(fd *os.File, offset, length int, prot, flags int) (*Mmap, error)

func (*Mmap) Dump

func (m *Mmap) Dump()

func (*Mmap) Flush

func (m *Mmap) Flush() error

func (*Mmap) Lock

func (m *Mmap) Lock() error

func (*Mmap) Read

func (m *Mmap) Read(p []byte) (n int, err error)

func (*Mmap) Reset

func (m *Mmap) Reset()

func (*Mmap) Seek

func (m *Mmap) Seek(off int) error

func (*Mmap) String

func (m *Mmap) String() string

func (*Mmap) Unlock

func (m *Mmap) Unlock() error

func (*Mmap) Unmap

func (m *Mmap) Unmap() error

func (*Mmap) Write

func (m *Mmap) Write(p []byte) (n int, err error)

func (*Mmap) WriteString

func (m *Mmap) WriteString(p string) (n int, err error)

Jump to

Keyboard shortcuts

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