btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / TeamMemory.h
blobed8ee554f76b564977bc9af65443defad47cb0d1
1 /*
2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef TEAM_MEMORY_H
7 #define TEAM_MEMORY_H
10 #include <Referenceable.h>
12 #include "TargetAddressRange.h"
15 class BString;
18 class TeamMemory : public BReferenceable {
19 public:
20 virtual ~TeamMemory();
23 virtual status_t GetMemoryProperties(target_addr_t baseAddress,
24 uint32& protection, uint32& locking) = 0;
26 virtual ssize_t ReadMemory(target_addr_t address, void* buffer,
27 size_t size) = 0;
28 virtual status_t ReadMemoryString(target_addr_t address,
29 size_t maxLength, BString& _string);
30 virtual ssize_t WriteMemory(target_addr_t address,
31 void* buffer, size_t size) = 0;
35 #endif // TEAM_MEMORY_H