-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinarysection.cpp
More file actions
54 lines (41 loc) · 1.21 KB
/
binarysection.cpp
File metadata and controls
54 lines (41 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "binarysection.h"
BinarySection::BinarySection(QString name, qint64 offset, qint64 virtualSize, QBitArray permissions,
double entropy, QString comment)
: m_name(name), m_offset(offset), m_virtualSize(virtualSize), m_permissions(permissions),
m_entropy(entropy), m_comment(comment) {}
QString BinarySection::GetName() const {
return m_name;
}
void BinarySection::SetName(QString name) {
m_name = name;
}
qint64 BinarySection::GetOffset() const {
return m_offset;
}
void BinarySection::SetOffset(qint64 offset) {
m_offset = offset;
}
qint64 BinarySection::GetVirtualSize() const {
return m_virtualSize;
}
void BinarySection::SetVirtualSize(qint64 virtualSize) {
m_virtualSize = virtualSize;
}
QBitArray BinarySection::GetPermissions() const {
return m_permissions;
}
void BinarySection::SetPermissions(QBitArray permissions) {
m_permissions = permissions;
}
double BinarySection::GetEntropy() const {
return m_entropy;
}
void BinarySection::SetEntropy(double entropy) {
m_entropy = entropy;
}
QString BinarySection::GetComment() const {
return m_comment;
}
void BinarySection::SetComment(QString comment) {
m_comment = comment;
}