Versions in this module Expand all Collapse all v0 v0.1.1 Dec 2, 2018 Changes in this version + type ErrorClosed struct + func (err *ErrorClosed) Error() string + type ErrorInvalidMode struct + Mode Mode + func (err *ErrorInvalidMode) Error() string + type ErrorInvalidOffset struct + Offset syspack.Offset + func (err *ErrorInvalidOffset) Error() string + type ErrorInvalidOffsetRange struct + High syspack.Offset + Low syspack.Offset + func (err *ErrorInvalidOffsetRange) Error() string + type ErrorInvalidSize struct + Size syspack.Size + func (err *ErrorInvalidSize) Error() string + type ErrorNotAllowed struct + Operation string + func (err *ErrorNotAllowed) Error() string + type Mapping struct — linux/amd64, windows/amd64 + func NewMapping(fd uintptr, offset syspack.Offset, size syspack.Size, options *Options) (*Mapping, error) + func (mapping *Mapping) CanExecute() bool + func (mapping *Mapping) CanRead() bool + func (mapping *Mapping) CanWrite() bool + func (mapping *Mapping) Close() error + func (mapping *Mapping) Direct(low, high syspack.Offset) ([]byte, error) + func (mapping *Mapping) EnsureQuota() error + func (mapping *Mapping) Len() int + func (mapping *Mapping) Lock() error + func (mapping *Mapping) ReadAt(buffer []byte, offset syspack.Offset) (int, error) + func (mapping *Mapping) ReadByteAt(offset syspack.Offset) (byte, error) + func (mapping *Mapping) Sync() error + func (mapping *Mapping) Unlock() error + func (mapping *Mapping) WriteAt(buffer []byte, offset syspack.Offset) (int, error) + func (mapping *Mapping) WriteByteAt(byte byte, offset syspack.Offset) error + type Mode int + const ModeReadOnly + const ModeReadWrite + const ModeReadWritePrivate + type Options struct + Executable bool + Mode Mode