-const void* MC_snapshot_read(mc_snapshot_t snapshot, e_adress_space_read_flags_t flags,
- void* target, const void* addr, size_t size, int process_index);
-int MC_snapshot_region_memcmp(
+// Deprecated compatibility wrapper
+static inline
+const void* MC_snapshot_read(mc_snapshot_t snapshot,
+ simgrid::mc::AddressSpace::ReadMode mode,
+ void* target, const void* addr, size_t size, int process_index)
+{
+ return snapshot->read_bytes(target, size, simgrid::mc::remote(addr),
+ process_index, mode);
+}
+
+MC_SHOULD_BE_INTERNAL int MC_snapshot_region_memcmp(