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