RemoteDrawingEngine: Reduce RP_READ_BITMAP result timeout.
[haiku.git] / src / bin / debug / strace / MemoryReader.h
blobb625b9b909e691cac882c897eec83c1e04f3468a
1 /*
2 * Copyright 2005-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef STRACE_MEMORY_READER_H
6 #define STRACE_MEMORY_READER_H
9 #include <OS.h>
12 class MemoryReader {
13 public:
14 MemoryReader();
15 ~MemoryReader();
17 status_t Init(port_id nubPort);
19 status_t Read(void *address, void *buffer, int32 size,
20 int32 &bytesRead);
22 private:
23 status_t _Read(void *address, void *buffer, int32 size,
24 int32 &bytesRead);
26 private:
27 port_id fNubPort;
28 port_id fReplyPort;
32 #endif // STRACE_MEMORY_READER_H