DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CDataAlloc2< 1 > Class Reference

Public Member Functions

 CDataAlloc2 (int limit)
 
u_char * Alloc (int quads)
 
u_char * Alloc64 (int quads)
 
void Align64 ()
 
void Reset ()
 

Public Attributes

u_char * base
 
u_char * buffer
 
int used
 
int limit
 

Detailed Description

Definition at line 56 of file dataalloc.hpp.

Constructor & Destructor Documentation

◆ CDataAlloc2() [1/2]

Definition at line 7 of file dataalloc.cpp.

◆ CDataAlloc2() [2/2]

CDataAlloc2< 1 >::CDataAlloc2 ( int  limit)

Definition at line 98 of file dataalloc2_1.cpp.

Member Function Documentation

◆ Alloc()

u_char * CDataAlloc2< 1 >::Alloc ( int  quads)

Definition at line 7 of file dataalloc2_1.cpp.

◆ Alloc64()

u_char * CDataAlloc2< 1 >::Alloc64 ( int  quads)

Definition at line 22 of file dataalloc2_1.cpp.

◆ Align64()

void CDataAlloc2< 1 >::Align64 ( )

Definition at line 38 of file dataalloc2_1.cpp.

◆ Reset()

void CDataAlloc2< 1 >::Reset ( )
inline

Hands the whole arena back, without touching what is in it.

Definition at line 71 of file dataalloc.hpp.

Member Data Documentation

◆ base

u_char* CDataAlloc2< 1 >::base

Start of the allocator-owned storage.

Definition at line 58 of file dataalloc.hpp.

◆ buffer

u_char* CDataAlloc2< 1 >::buffer

Storage the constructor starts the arena's base at.

Definition at line 59 of file dataalloc.hpp.

◆ used

int CDataAlloc2< 1 >::used

Number of occupied quadwords.

Definition at line 60 of file dataalloc.hpp.

◆ limit

int CDataAlloc2< 1 >::limit

Maximum number of available quadwords.

Definition at line 61 of file dataalloc.hpp.