1 /* 2 * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef STRACE_MEMORY_READER_H 6 #define STRACE_MEMORY_READER_H 7 8 #include <OS.h> 9 10 class MemoryReader { 11 public: 12 MemoryReader(port_id nubPort); 13 ~MemoryReader(); 14 15 status_t Read(void *address, void *buffer, int32 size, int32 &bytesRead); 16 17 private: 18 status_t _Read(void *address, void *buffer, int32 size, int32 &bytesRead); 19 20 port_id fNubPort; 21 port_id fReplyPort; 22 }; 23 24 25 #endif // STRACE_MEMORY_READER_H 26