RetroArch
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
LinearAllocator Class Reference

#include <serialization.h>

Inheritance diagram for LinearAllocator:
[legend]

Public Member Functions

 LinearAllocator ()
 
 LinearAllocator (char *buffer, size_t size)
 
voidMalloc (size_t size)
 
voidRealloc (void *originalPtr, size_t originalSize, size_t newSize)
 

Static Public Member Functions

static void Free (void *ptr)
 

Public Attributes

char * buffer_
 
char * end_
 

Static Public Attributes

static const bool kNeedFree = false
 

Constructor & Destructor Documentation

◆ LinearAllocator() [1/2]

LinearAllocator::LinearAllocator ( )
inline

◆ LinearAllocator() [2/2]

LinearAllocator::LinearAllocator ( char *  buffer,
size_t  size 
)
inline

Member Function Documentation

◆ Free()

static void LinearAllocator::Free ( void ptr)
inlinestatic
Here is the call graph for this function:

◆ Malloc()

void* LinearAllocator::Malloc ( size_t  size)
inline
Here is the caller graph for this function:

◆ Realloc()

void* LinearAllocator::Realloc ( void originalPtr,
size_t  originalSize,
size_t  newSize 
)
inline
Here is the call graph for this function:

Member Data Documentation

◆ buffer_

char* LinearAllocator::buffer_

◆ end_

char* LinearAllocator::end_

◆ kNeedFree

const bool LinearAllocator::kNeedFree = false
static

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