Versions in this module Expand all Collapse all v0 v0.0.2 Jul 1, 2023 v0.0.1 Apr 4, 2022 Changes in this version + var ErrBadFD = errors.New("mmap: bad file descriptor") + var ErrClosed = errors.New("mmap: closed") + var ErrInvalidOffset = errors.New("mmap: invalid offset") + var ErrInvalidWhence = errors.New("mmap: invalid whence") + var ErrNegativePosition = errors.New("mmap: negative position") + type File struct + func Open(filename string) (*File, error) + func OpenFile(filename string, flag Flag) (*File, error) + func (f *File) Close() error + func (f *File) Len() int + func (f *File) Read(p []byte) (int, error) + func (f *File) ReadAt(p []byte, off int64) (int, error) + func (f *File) ReadOff(off, length int) ([]byte, error) + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) Stat() (os.FileInfo, error) + func (f *File) Sync() error + func (f *File) Write(p []byte) (int, error) + func (f *File) WriteAt(p []byte, off int64) (int, error) + type Flag int + const Read + const Write