- /** Read a given data structure from the address space */
- template<class T> inline
- T read(remote_ptr<T> ptr, int process_index = ProcessIndexMissing)
+ /** Read a given data structure from the address space
+ *
+ * This version returns by value.
+ */
+ template <class T> inline Remote<T> read(RemotePtr<T> ptr) const
+ {
+ Remote<T> res;
+ this->read_bytes(&res, sizeof(T), ptr);
+ return res;
+ }
+
+ /** Read a string of known size */
+ std::string read_string(RemotePtr<char> address, std::size_t len) const