Documentation ¶
Index ¶
- type ProcPlatAttribs
- type Process
- func (p *Process) ReadBytes(addr uintptr, size int) ([]byte, error)
- func (p *Process) ReadFloat32(addr uintptr) (float32, error)
- func (p *Process) ReadFloat64(addr uintptr) (float64, error)
- func (p *Process) ReadInt16(addr uintptr) (int16, error)
- func (p *Process) ReadInt32(addr uintptr) (int32, error)
- func (p *Process) ReadInt64(addr uintptr) (int64, error)
- func (p *Process) ReadInt8(addr uintptr) (int8, error)
- func (p *Process) ReadNullTerminatedUTF16String(addr uintptr) (string, error)
- func (p *Process) ReadNullTerminatedUTF8String(addr uintptr) (string, error)
- func (p *Process) ReadUint16(addr uintptr) (uint16, error)
- func (p *Process) ReadUint32(addr uintptr) (uint32, error)
- func (p *Process) ReadUint32Ptr(addr uintptr, offsets ...uintptr) (uint32, error)
- func (p *Process) ReadUint64(addr uintptr) (uint64, error)
- func (p *Process) ReadUint8(addr uintptr) (uint8, error)
- func (p *Process) WriteBytes(addr uintptr, v []byte) error
- func (p *Process) WriteFloat32(addr uintptr, v float32) error
- func (p *Process) WriteFloat64(addr uintptr, v float64) error
- func (p *Process) WriteInt16(addr uintptr, v int16) error
- func (p *Process) WriteInt32(addr uintptr, v int32) error
- func (p *Process) WriteInt64(addr uintptr, v int64) error
- func (p *Process) WriteInt8(addr uintptr, v int8) error
- func (p *Process) WriteUint16(addr uintptr, v uint16) error
- func (p *Process) WriteUint32(addr uintptr, v uint32) error
- func (p *Process) WriteUint64(addr uintptr, v uint64) error
- func (p *Process) WriteUint8(addr uintptr, v uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcPlatAttribs ¶
type ProcPlatAttribs struct { }
Platform specific fields to be embedded into the Process struct.
type Process ¶
type Process struct { // Embedded struct for platform specific fields ProcPlatAttribs // Platform independent process details PID uint64 }
Process holds general information about the process, as well as embedding the struct ProcPlatAttribs which contains platform-specific data such as Windows process handles, linux `/proc` file handles, etc.
func GetProcessByFileName ¶
GetProcessByFileName returns the process with the given file name. If multiple processes have the same filename, the first process enumerated by this function is returned.
func GetProcessByPID ¶
GetProcessByPID returns the process with the given PID.
func (*Process) ReadFloat32 ¶
ReadFloat32 reads a float32.
func (*Process) ReadFloat64 ¶
ReadFloat64 reads a float64
func (*Process) ReadNullTerminatedUTF16String ¶
ReadNullTerminatedUTF16String reads a null-termimated UTF16 string. Respects BOM, assumes little endianess if no BOM is present.
func (*Process) ReadNullTerminatedUTF8String ¶
ReadNullTerminatedUTF8String reads a null-termimated UTF8 string.
func (*Process) ReadUint16 ¶
ReadUint16 reads an uint16.
func (*Process) ReadUint32 ¶
ReadUint32 reads an uint32.
func (*Process) ReadUint32Ptr ¶
ReadUint32Ptr reads a uint32 pointer chain with offsets.
func (*Process) ReadUint64 ¶
ReadUint64 reads an uint64.
func (*Process) WriteBytes ¶
WriteBytes writes a slice of bytes.
func (*Process) WriteFloat32 ¶
WriteFloat32 writes a float32.
func (*Process) WriteFloat64 ¶
WriteFloat64 writes a float64.
func (*Process) WriteInt16 ¶
WriteInt16 writes an int16.
func (*Process) WriteInt32 ¶
WriteInt32 writes an int32.
func (*Process) WriteInt64 ¶
WriteInt64 writes an int64.
func (*Process) WriteUint16 ¶
WriteUint16 writes an uint16.
func (*Process) WriteUint32 ¶
WriteUint32 writes an uint32.
func (*Process) WriteUint64 ¶
WriteUint64 writes an uint64.