// WriteVM uses the process_write_vm system call to write data to addr in the
// child. It is functionally the same as PokeData but requires the region to be
// writable for the child as well.
WriteVM uses the process_write_vm system call to write data to addr in the
child. It is functionally the same as PokeData but requires the region to be
writable for the child as well.
// WriteVM uses the process_write_vm system call to write data to addr in the // child . It is functionally the same as PokeData but requires the region to be // writable for the child as well .
func (t *Tracer) WriteVM(addr uintptr, data []byte) (int, error) {
	remoteIov := unix.RemoteIovec{
		Base: addr,
		Len:  len(data),
	}
	localIov := unix.Iovec{
		Base: &data[0],
		Len:  uint64(len(data)),
	}
	return unix.ProcessVMWritev(t.pid, []unix.Iovec{localIov}, []unix.RemoteIovec{remoteIov}, 0)
}
func ( t * Tracer ) WriteVM ( addr uintptr , data [ ] byte ) ( int , error ) { remoteIov := unix . RemoteIovec { Base : addr , Len : len ( data ) , } localIov := unix . Iovec { Base : & data [ 0 ] , Len : uint64 ( len ( data ) ) , } return unix . ProcessVMWritev ( t . pid , [ ] unix . Iovec { localIov } , [ ] unix . RemoteIovec { remoteIov } , 0 ) }
WriteVM uses the process_write_vm system call to write data to addr in the
child.
WriteVM uses the process_write_vm system call to write data to addr in the child .