Documentation
¶
Index ¶
- Variables
- func Close(data []byte) error
- func Open(path string, writable bool, length int64) (data []byte, err error)
- type MMFile
- func (m *MMFile) Close() error
- func (m *MMFile) Flush(flags int) error
- func (m *MMFile) Len() int64
- func (m *MMFile) Open() error
- func (m *MMFile) ReadAt(dest []byte, offset int64) (int, error)
- func (m *MMFile) ReadUint64At(offset int64) uint64
- func (m *MMFile) WriteAt(src []byte, offset int64) (int, error)
- func (m *MMFile) WriteUint64At(num uint64, offset int64)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnmappedMemory = errors.New("unmapped memory") ErrIndexOutOfBound = errors.New("offset out of mapped region") )
Functions ¶
Types ¶
type MMFile ¶
type MMFile struct {
// contains filtered or unexported fields
}
File reads/writes a memory-mapped file.
func (*MMFile) ReadUint64At ¶
func (*MMFile) WriteUint64At ¶
WriteUint64At writes num at offset.
Click to show internal directories.
Click to hide internal directories.