- enum ReadMode {
- Normal,
- /** Allows the `read_bytes` to return a pointer to another buffer
- * where the data ins available instead of copying the data into the buffer
- */
- Lazy
- };
- virtual ~AddressSpace();
+ explicit AddressSpace(Process* process) : process_(process) {}
+ virtual ~AddressSpace() = default;
+
+ /** The process of this addres space
+ *
+ * This is where we can get debug informations, memory layout, etc.
+ */
+ simgrid::mc::Process* process() const { return process_; }
+
+ /** Read data from the address space
+ *
+ * @param buffer target buffer for the data
+ * @param size number of bytes to read
+ * @param address remote source address of the data
+ * @param process_index which process (used for SMPI privatization)
+ * @param options
+ */