ScummVM API documentation
ptr_util.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* Additional copyright for this file:
8
* Copyright (C) 1999-2000 Revolution Software Ltd.
9
* This code is based on source code created by Revolution Software,
10
* used with permission.
11
*
12
* This program is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
*
25
*/
26
27
#ifndef ICB_PTR_UTIL_H
28
#define ICB_PTR_UTIL_H
29
30
#include "engines/icb/common/px_common.h"
31
32
#include "common/array.h"
33
34
namespace
ICB
{
35
36
// map pointers to 32-bit references (bottom 32-bits of address)
37
struct
PointerReference
{
38
uint32 ref;
39
uint8 *ptr;
40
};
41
42
extern
Common::Array<PointerReference>
*g_ptrArray;
43
44
namespace
MemoryUtil {
45
46
uint32 encodePtr(uint8 *ptr);
47
uint8 *resolvePtr(uint32 ptrRef);
48
void
clearAllPtrs();
49
}
50
51
#endif // PTR_UTIL_H
52
53
}
// End of namespace ICB
Common::Array
Definition:
array.h:52
ICB::PointerReference
Definition:
ptr_util.h:37
ICB
Definition:
actor.h:32
engines
icb
common
ptr_util.h
Generated on Fri Nov 22 2024 09:18:47 for ScummVM API documentation by
1.8.13