2009-06-26 04:39:23 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef TEAM_MEMORY_H
|
|
|
|
#define TEAM_MEMORY_H
|
|
|
|
|
2009-10-15 08:34:59 +04:00
|
|
|
|
2009-06-26 04:39:23 +04:00
|
|
|
#include "TargetAddressRange.h"
|
|
|
|
|
|
|
|
|
2009-10-15 08:34:59 +04:00
|
|
|
class BString;
|
|
|
|
|
|
|
|
|
2009-06-26 04:39:23 +04:00
|
|
|
class TeamMemory {
|
|
|
|
public:
|
|
|
|
virtual ~TeamMemory();
|
|
|
|
|
|
|
|
|
|
|
|
virtual ssize_t ReadMemory(target_addr_t address, void* buffer,
|
|
|
|
size_t size) = 0;
|
2009-10-15 08:34:59 +04:00
|
|
|
virtual status_t ReadMemoryString(target_addr_t address,
|
|
|
|
size_t maxLength, BString& _string);
|
2010-12-14 02:33:29 +03:00
|
|
|
virtual ssize_t WriteMemory(target_addr_t address,
|
|
|
|
void* buffer, size_t size) = 0;
|
2009-06-26 04:39:23 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TEAM_MEMORY_H
|