memory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VirtualQuery

func VirtualQuery(handle *windows.Handle, address uintptr) (*windows.MemoryBasicInformation, error)

Types

type Gomem

type Gomem struct {
	ProcessId     *uint32
	ProcessHandle *windows.Handle
	ThreadHandle  uintptr
	IsWow64       bool
}

func NewGomem

func NewGomem[T uint32 | string](processId T, desiredAccess *uint32) (*Gomem, error)

func (*Gomem) ReadBytes

func (gm *Gomem) ReadBytes(address uintptr, size uintptr) ([]byte, error)

func (*Gomem) ReadInt

func (gm *Gomem) ReadInt(address uintptr) (*int32, error)

func (*Gomem) ReadLongLong

func (gm *Gomem) ReadLongLong(address uintptr) (*int64, error)

func (*Gomem) ReadUint

func (gm *Gomem) ReadUint(address uintptr) (*uint32, error)

func (*Gomem) WriteBytes

func (gm *Gomem) WriteBytes(address uintptr, data []byte, size uintptr) (bool, error)

func (*Gomem) WriteUint

func (gm *Gomem) WriteUint(address uintptr, value uint32) (bool, error)

Jump to

Keyboard shortcuts

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