vfs: check userland buffers before reading them.
[haiku.git] / src / kits / debugger / model / AreaInfo.cpp
blobee1a8563249d3b2b073e25890020d57281e853f8
1 /*
2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "AreaInfo.h"
10 AreaInfo::AreaInfo()
12 fTeam(-1),
13 fArea(-1),
14 fName(),
15 fAddress(0),
16 fSize(0),
17 fRamSize(0),
18 fLock(0),
19 fProtection(0)
24 AreaInfo::AreaInfo(const AreaInfo &other)
26 fTeam(other.fTeam),
27 fArea(other.fArea),
28 fName(other.fName),
29 fAddress(other.fAddress),
30 fSize(other.fSize),
31 fRamSize(other.fRamSize),
32 fLock(other.fLock),
33 fProtection(other.fProtection)
38 AreaInfo::AreaInfo(team_id team, area_id area, const BString& name,
39 target_addr_t address, target_size_t size, target_size_t ramSize,
40 uint32 lock, uint32 protection)
42 fTeam(team),
43 fArea(area),
44 fName(name),
45 fAddress(address),
46 fSize(size),
47 fRamSize(ramSize),
48 fLock(lock),
49 fProtection(protection)
54 void
55 AreaInfo::SetTo(team_id team, area_id area, const BString& name,
56 target_addr_t address, target_size_t size, target_size_t ramSize,
57 uint32 lock, uint32 protection)
59 fTeam = team;
60 fArea = area;
61 fName = name;
62 fAddress = address;
63 fSize = size;
64 fRamSize = ramSize;
65 fLock = lock;
66 fProtection = protection;