RetroArch
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
glslang::TAllocation Class Reference

#include <PoolAlloc.h>

Collaboration diagram for glslang::TAllocation:
[legend]

Public Member Functions

 TAllocation (size_t size, unsigned char *mem, TAllocation *prev=0)
 
void check () const
 
void checkAllocList () const
 

Static Public Member Functions

static size_t allocationSize (size_t size)
 
static unsigned char * offsetAllocation (unsigned char *m)
 

Private Member Functions

void checkGuardBlock (unsigned char *blockMem, unsigned char val, const char *locText) const
 
unsigned char * preGuard () const
 
unsigned char * data () const
 
unsigned char * postGuard () const
 

Static Private Member Functions

static size_t headerSize ()
 

Private Attributes

size_t size
 
unsigned char * mem
 
TAllocationprevAlloc
 

Static Private Attributes

static const unsigned char guardBlockBeginVal = 0xfb
 
static const unsigned char guardBlockEndVal = 0xfe
 
static const unsigned char userDataFill = 0xcd
 
static const size_t guardBlockSize = 0
 

Constructor & Destructor Documentation

◆ TAllocation()

glslang::TAllocation::TAllocation ( size_t  size,
unsigned char *  mem,
TAllocation prev = 0 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ allocationSize()

static size_t glslang::TAllocation::allocationSize ( size_t  size)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check()

void glslang::TAllocation::check ( ) const
inline
Here is the call graph for this function:

◆ checkAllocList()

void glslang::TAllocation::checkAllocList ( ) const

◆ checkGuardBlock()

void glslang::TAllocation::checkGuardBlock ( unsigned char *  blockMem,
unsigned char  val,
const char *  locText 
) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ data()

unsigned char* glslang::TAllocation::data ( ) const
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ headerSize()

static size_t glslang::TAllocation::headerSize ( )
inlinestaticprivate
Here is the caller graph for this function:

◆ offsetAllocation()

static unsigned char* glslang::TAllocation::offsetAllocation ( unsigned char *  m)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ postGuard()

unsigned char* glslang::TAllocation::postGuard ( ) const
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preGuard()

unsigned char* glslang::TAllocation::preGuard ( ) const
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ guardBlockBeginVal

const unsigned char glslang::TAllocation::guardBlockBeginVal = 0xfb
staticprivate

◆ guardBlockEndVal

const unsigned char glslang::TAllocation::guardBlockEndVal = 0xfe
staticprivate

◆ guardBlockSize

const size_t glslang::TAllocation::guardBlockSize = 0
staticprivate

◆ mem

unsigned char* glslang::TAllocation::mem
private

◆ prevAlloc

TAllocation* glslang::TAllocation::prevAlloc
private

◆ size

size_t glslang::TAllocation::size
private

◆ userDataFill

const unsigned char glslang::TAllocation::userDataFill = 0xcd
staticprivate

The documentation for this class was generated from the following files: