DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CDataAlloc< Kind, Size > Class Template Reference

#include <dataalloc.hpp>

Public Member Functions

u_char * Alloc (int quads)
 
u_char * Alloc64 (int quads)
 
void Align64 ()
 

Public Attributes

u_long128 block [Size]
 
int used
 

Detailed Description

template<int Kind, int Size>
class CDataAlloc< Kind, Size >

Allocates sixteen-byte units from storage embedded in the allocator.

Definition at line 43 of file dataalloc.hpp.

Constructor & Destructor Documentation

◆ CDataAlloc()

template<int Kind, int Size>
CDataAlloc< Kind, Size >::CDataAlloc ( )
inline

Definition at line 48 of file dataalloc.hpp.

Member Function Documentation

◆ Alloc()

template<int Kind, int Size>
u_char * CDataAlloc< Kind, Size >::Alloc ( int  quads)

Definition at line 103 of file dataalloc.hpp.

◆ Alloc64()

template<int Kind, int Size>
u_char * CDataAlloc< Kind, Size >::Alloc64 ( int  quads)

Definition at line 119 of file dataalloc.hpp.

◆ Align64()

template<int Kind, int Size>
void CDataAlloc< Kind, Size >::Align64 ( )

Definition at line 137 of file dataalloc.hpp.

Member Data Documentation

◆ block

template<int Kind, int Size>
u_long128 CDataAlloc< Kind, Size >::block[Size]

Embedded allocation storage.

Definition at line 45 of file dataalloc.hpp.

◆ used

template<int Kind, int Size>
int CDataAlloc< Kind, Size >::used

Number of occupied quadwords.

Definition at line 46 of file dataalloc.hpp.