Documentation ¶
Index ¶
- Constants
- func OpenFile(path string) (*os.File, error)
- type MMap
- type MappedFile
- func (mf *MappedFile) Close() error
- func (mf *MappedFile) Len() int
- func (mf *MappedFile) Read(b []byte) (int, error)
- func (mf *MappedFile) ReadAt(b []byte, off int64) (int, error)
- func (mf *MappedFile) Seek(offset int64, whence int) (int64, error)
- func (mf *MappedFile) Write(b []byte) (int, error)
- func (mf *MappedFile) WriteAt(b []byte, off int64) (int, error)
Constants ¶
View Source
const ( RDONLY = 0 RDWR = 1 << iota COPY EXEC )
View Source
const (
ANON = 1 << iota
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MappedFile ¶
type MappedFile struct {
// contains filtered or unexported fields
}
func OpenMappedFile ¶
func OpenMappedFile(path string, prot, flags int) (*MappedFile, error)
func (*MappedFile) Close ¶
func (mf *MappedFile) Close() error
func (*MappedFile) Len ¶
func (mf *MappedFile) Len() int
Click to show internal directories.
Click to hide internal directories.