Documentation
¶
Overview ¶
Package mem contains a set of memory utilities.
credits: github.com/Zwuiix-cmd/external-aimassist
Index ¶
- Variables
- func Alloc(proc *win.Process, size uintptr) (uintptr, error)
- func AllocNear(proc *win.Process, target uintptr, size uintptr) (uintptr, error)
- func FullMask(n int) string
- func IsReadable(mbi w.MemoryBasicInformation) bool
- func NopBytes(size int) []byte
- func Patch(p *win.Process, addr uintptr, b []byte) error
- func ReadBytes(p *win.Process, addr uintptr, size uint, protect ...bool) ([]byte, error)
- func ReadMemory[T any](p *win.Process, addr uintptr, protect ...bool) (val T, err error)
- func RegionInfo(handle w.Handle, address uintptr) (bool, uintptr)
- func ResolvePointerAddress(proc *win.Process, ptr Pointer, opts ...any) (uintptr, error)
- func ResolvePointerValue[T any](proc *win.Process, ptr Pointer, opts ...any) (zero T, addr uintptr, err error)
- func ScanSignature(proc *win.Process, sig Signature, opts ...win.GetModuleInfoOptions) (uintptr, error)
- func Unalloc(proc *win.Process, addr uintptr) (bool, error)
- func WriteMemory[T any](proc *win.Process, addr uintptr, val T) error
- type ErrPatchAt
- type OptionCustomModule
- type OptionProtect
- type Pointer
- type Signature
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrZeroAddress = errors.New("zero address") ErrZeroSize = errors.New("zero size") ErrEmptySignature = errors.New("empty signature") ErrCannotCallProc = errors.New("cannot call proc") )
View Source
var ErrSignatureNotFound = errors.New("signature not found")
Functions ¶
func IsReadable ¶
func IsReadable(mbi w.MemoryBasicInformation) bool
func ReadMemory ¶
func ResolvePointerAddress ¶
func ResolvePointerValue ¶
func ScanSignature ¶
Types ¶
type ErrPatchAt ¶
func (ErrPatchAt) Error ¶
func (err ErrPatchAt) Error() string
type OptionCustomModule ¶
type OptionCustomModule struct{ Options win.GetModuleInfoOptions }
type OptionProtect ¶
type OptionProtect struct{}
Click to show internal directories.
Click to hide internal directories.