My Project
1.00
メインページ
モジュール
クラス
ファイル
ファイル一覧
全て
クラス
ファイル
関数
変数
グループ
include
IMemorySystem.h
説明を見る。
1
56
namespace
OrgSys {
57
namespace
Memory {
58
59
class
IMemorySystem;
60
64
const
u16
cBlockMemoryUnit
= 16;
65
const
u8
cAllocFillCodeValue
=0xcd;
66
const
u8
cFreeFillCodeValue
=0xfd;
67
75
class
IMemorySystem
{
76
protected
:
77
82
IMemorySystem
() {
83
instance
=
this
;
84
}
85
90
virtual
~
IMemorySystem
() {
91
}
92
100
static
IMemorySystem
*
getInst
() {
101
return
instance
;
102
}
103
112
virtual
void
initialize
(
void
* heapAddr,
size_t
heapSize) = 0;
113
125
virtual
void
*
mallocAlignment
(
size_t
size,
unsigned
int
align=1 ) = 0;
126
135
virtual
void
free
(
void
* ptr ) = 0;
136
147
virtual
size_t
getFreeTotalSize
()
const
= 0;
148
159
virtual
size_t
getAllocatableSize
(
unsigned
int
align )
const
= 0;
160
169
virtual
bool
checkMemoryLeak
() = 0;
170
171
IMemorySystem
*
instance
;
172
173
};
175
}
176
}
My Projectに対してTue Aug 13 2013 16:44:15に生成されました。
1.8.4