memory

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address[t comparable] struct {
	Process *Process
	Data    uintptr
}

func NewAddress

func NewAddress[t comparable](process *Process, address uintptr) *Address[t]

func (*Address[t]) Read

func (address *Address[t]) Read() (t, error)

func (*Address[t]) Write

func (address *Address[t]) Write(data t) error

type Module

type Module struct {
	// contains filtered or unexported fields
}

func GetAllModules

func GetAllModules(process *Process) ([]*Module, error)

func NewModule

func NewModule(process *Process, name string) (*Module, error)

func (*Module) GetAddress

func (module *Module) GetAddress() uintptr

func (*Module) GetName

func (module *Module) GetName() string

func (*Module) GetProcess

func (module *Module) GetProcess() *Process

type Pointer

type Pointer[t comparable] struct {
	Module  *Module
	Address uintptr
	Offsets []uintptr
}

func NewPointer

func NewPointer[t comparable](module *Module, address uintptr, offsets []uintptr) *Pointer[t]

func (*Pointer[t]) CalculateOffsets

func (pointer *Pointer[t]) CalculateOffsets() (*Address[t], error)

type Process

type Process struct {
	// contains filtered or unexported fields
}

func GetAllProcesses

func GetAllProcesses() ([]*Process, error)

func NewProcessById

func NewProcessById(id uint32) (*Process, error)

func NewProcessByName

func NewProcessByName(name string) (*Process, error)

func (*Process) Close

func (process *Process) Close() error

func (*Process) GetId

func (process *Process) GetId() uint32

func (*Process) GetName

func (process *Process) GetName() string

func (*Process) Open

func (process *Process) Open() error

func (Process) Resume

func (process Process) Resume() error

func (Process) Suspend

func (process Process) Suspend() error

Jump to

Keyboard shortcuts

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