forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImage.cpp
More file actions
40 lines (33 loc) · 808 Bytes
/
Image.cpp
File metadata and controls
40 lines (33 loc) · 808 Bytes
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
#include "il2cpp-config.h"
#include "Image.h"
namespace il2cpp
{
namespace os
{
namespace Image
{
static void* s_ManagedSectionStart = NULL;
static void* s_ManagedSectionEnd = NULL;
bool ManagedSectionExists()
{
return s_ManagedSectionStart != NULL && s_ManagedSectionEnd != NULL;
}
bool IsInManagedSection(void* ip)
{
if (!ManagedSectionExists())
return false;
return s_ManagedSectionStart <= ip && ip <= s_ManagedSectionEnd;
}
void GetManagedSectionStartAndEnd(void*& start, void*& end)
{
start = s_ManagedSectionStart;
end = s_ManagedSectionEnd;
}
void SetManagedSectionStartAndEnd(void* start, void* end)
{
s_ManagedSectionStart = start;
s_ManagedSectionEnd = end;
}
}
}
}