Documentation ¶
Index ¶
- type ErrorClosed
- type ErrorInvalidMode
- type ErrorInvalidOffset
- type ErrorInvalidOffsetRange
- type ErrorInvalidSize
- type ErrorNotAllowed
- type Mapping
- 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) 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
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorInvalidMode ¶
type ErrorInvalidMode struct{ Mode Mode }
Error occurred when mapping mode is invalid.
type ErrorInvalidOffset ¶
Error occurred when offset is invalid.
type ErrorInvalidOffsetRange ¶
Error occurred when offset range is invalid.
func (*ErrorInvalidOffsetRange) Error ¶
func (err *ErrorInvalidOffsetRange) Error() string
Get error message.
type ErrorInvalidSize ¶
Error occurred when size is invalid.
type ErrorNotAllowed ¶
type ErrorNotAllowed struct{ Operation string }
Error occurred when operation is not allowed.
type Mapping ¶
type Mapping struct {
// contains filtered or unexported fields
}
func NewMapping ¶
func NewMapping(fd uintptr, offset syspack.Offset, size syspack.Size, options *Options) (*Mapping, error)
Make new mapping.
func (*Mapping) CanExecute ¶
Whether is mapping execution allowed.
func (*Mapping) ReadByteAt ¶
Read single byte from mapping at given offset.
Click to show internal directories.
Click to hide internal directories.