mmap

package module
v0.0.0-...-d8829de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AlignPage bool
	AlignSize bool
	Base      int64
	Length    int
	FileName  string
}

type DataAble

type DataAble interface {
	uint8 | uint16 | uint32 | uint64
}

type Mmap

type Mmap[T DataAble] struct {
	// contains filtered or unexported fields
}

func Acquire

func Acquire[T DataAble](config Config) (m *Mmap[T], err error)

func (*Mmap[T]) BaseAddress

func (m *Mmap[T]) BaseAddress() int64

func (*Mmap[T]) MemoryRead

func (m *Mmap[T]) MemoryRead(addr int64) (T, error)

func (*Mmap[T]) MemorySpecialClear

func (m *Mmap[T]) MemorySpecialClear(addr int64, bits ...int) error

func (*Mmap[T]) MemorySpecialMask

func (m *Mmap[T]) MemorySpecialMask(addr int64, bits ...int) error

func (*Mmap[T]) MemorySpecialNegate

func (m *Mmap[T]) MemorySpecialNegate(addr int64, bits ...int) error

func (*Mmap[T]) MemoryWrite

func (m *Mmap[T]) MemoryWrite(addr int64, val T) error

func (*Mmap[T]) Release

func (m *Mmap[T]) Release()

func (*Mmap[T]) TotalLength

func (m *Mmap[T]) TotalLength() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL