Documentation
¶
Index ¶
- Constants
- func BytesToFloat32(bytes []byte) float32
- func BytesToFloat64(bytes []byte) float64
- func Float32ToBytes(v float32) []byte
- func Float64ToBytes(v float64) []byte
- func Read(pid int, dst []byte, address uintptr, size uint64) (n int, err error)
- func ReadFloat32(pid int, addres uintptr) (float32, error)
- func ReadFloat64(pid int, addres uintptr) (float64, error)
- func ReadGoString(pid int, address uintptr, size uint64) (string, error)
- func ReadString(pid int, address uintptr, size uint64) (string, error)
- func ReadUint32(pid int, address uintptr) (uint32, error)
- func ReadUint64(pid int, address uintptr) (uint64, error)
- func Write(pid int, address uintptr, data []byte) error
- func WriteFloat32(pid int, addres uintptr, value float32) error
- func WriteFloat64(pid int, addres uintptr, value float64) error
- func WriteString(pid int, address uintptr, value string) error
- func WriteUint32(pid int, address uintptr, value uint32) error
- func WriteUint64(pid int, address uintptr, value uint64) error
- type Process
Constants ¶
View Source
const ( BYTE_LEN = 1 UINT32_LEN = 4 UINT64_LEN = 8 FLOAT32_LEN = 4 FLOAT64_LEN = 8 )
Variables ¶
This section is empty.
Functions ¶
func BytesToFloat32 ¶
func BytesToFloat64 ¶
func Float32ToBytes ¶
func Float64ToBytes ¶
func WriteString ¶
if your dist is golang program, it will be work if string it's array of char
Types ¶
type Process ¶
type Process interface { Read(dst []byte, address uintptr, size uint64) (n int, err error) ReadUint32(address uintptr) (uint32, error) ReadUint64(address uintptr) (uint64, error) ReadFloat32(addres uintptr) (float32, error) ReadFloat64(addres uintptr) (float64, error) ReadString(address uintptr, size uint64) (string, error) ReadGoString(address uintptr, size uint64) (string, error) Write(address uintptr, data []byte) error WriteUint32(address uintptr, value uint32) error WriteUint64(address uintptr, value uint64) error WriteString(address uintptr, value string) error WriteFloat32(addres uintptr, value float32) error WriteFloat64(addres uintptr, value float64) error // Do not close the certain process Close() error }
func NewProcess ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.