Remote<T> read_variable(const char *name) const { Remote<T> res; read_variable(name, res.getBuffer(), sizeof(T)); return res; }
template<class T> inline void read(Remote<T>& buffer, RemotePtr<T> ptr, int process_index = ProcessIndexAny) const { this->read_bytes(buffer.getBuffer(), sizeof(T), ptr, process_index); }