2009-06-26 04:39:23 +04:00
|
|
|
/*
|
2015-05-26 04:44:14 +03:00
|
|
|
* Copyright 2015, Rene Gollent, rene@gollent.com.
|
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
|
|
|
|
2011-07-02 01:40:32 +04:00
|
|
|
#include <Referenceable.h>
|
|
|
|
|
2009-06-26 04:39:23 +04:00
|
|
|
#include "TargetAddressRange.h"
|
|
|
|
|
|
|
|
|
2009-10-15 08:34:59 +04:00
|
|
|
class BString;
|
|
|
|
|
|
|
|
|
2011-07-02 01:40:32 +04:00
|
|
|
class TeamMemory : public BReferenceable {
|
2009-06-26 04:39:23 +04:00
|
|
|
public:
|
|
|
|
virtual ~TeamMemory();
|
|
|
|
|
|
|
|
|
2015-05-26 04:44:14 +03:00
|
|
|
virtual status_t GetMemoryProperties(target_addr_t baseAddress,
|
|
|
|
uint32& protection, uint32& locking) = 0;
|
|
|
|
|
2009-06-26 04:39:23 +04:00
|
|
|
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
|