Documentation ¶
Index ¶
- type MemAccess
- func (m *MemAccess) Read(address uintptr, resultPtr unsafe.Pointer, size uintptr) error
- func (m *MemAccess) ReadByte(address uintptr) (byte, error)
- func (m *MemAccess) ReadPointer32(address uintptr) (uintptr, error)
- func (m *MemAccess) ReadPointerChain(chain ...uintptr) uintptr
- func (m *MemAccess) ReadUInt32(address uintptr) (uint32, error)
- func (m *MemAccess) Write(address uintptr, valuePtr unsafe.Pointer, size uintptr) error
- func (m *MemAccess) WriteByte(address uintptr, value byte) error
- func (m *MemAccess) WriteUInt32(address uintptr, value uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemAccess ¶
type MemAccess struct { Proc *process Base uintptr }
func NewMemAccess ¶
func (*MemAccess) ReadPointer32 ¶
ReadPointer32 reads a 32-bit pointer from the process memory.
func (*MemAccess) ReadPointerChain ¶
ReadPointerChain reads a pointer from a chain of offsets from the process memory. Starts at the module base address. It returns 0x0 if error occurs. Last offset is not dereference, as we assume it is a pointer to the value we want.
func (*MemAccess) ReadUInt32 ¶
ReadUInt32 reads a 32-bit unsigned integer from the process memory.
Click to show internal directories.
Click to hide internal directories.