git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96
26 lines
515 B
C++
26 lines
515 B
C++
/*
|
|
* Copyright 2005, Ingo Weinhold, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef STRACE_MEMORY_READER_H
|
|
#define STRACE_MEMORY_READER_H
|
|
|
|
#include <OS.h>
|
|
|
|
class MemoryReader {
|
|
public:
|
|
MemoryReader(port_id nubPort);
|
|
~MemoryReader();
|
|
|
|
status_t Read(void *address, void *buffer, int32 size, int32 &bytesRead);
|
|
|
|
private:
|
|
status_t _Read(void *address, void *buffer, int32 size, int32 &bytesRead);
|
|
|
|
port_id fNubPort;
|
|
port_id fReplyPort;
|
|
};
|
|
|
|
|
|
#endif // STRACE_MEMORY_READER_H
|