Files
haiku-beta6/src/bin/strace/MemoryReader.h
T
Axel Dörfler 17049c451a Moved bin/ directory out of apps/.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 00:09:19 +00:00

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