rapidjson::CrtAllocator Class Reference

C-runtime library allocator. More...

#include <rapidjson.h>

+ Inheritance diagram for rapidjson::CrtAllocator:

Public Member Functions

void * Malloc (size_t size)
 
void * Realloc (void *originalPtr, size_t originalSize, size_t newSize)
 

Static Public Member Functions

static void Free (void *ptr)
 

Static Public Attributes

static const bool kNeedFree = true
 

Detailed Description

C-runtime library allocator.

This class is just wrapper for standard C library memory routines.

Member Function Documentation

◆ Free()

static void rapidjson::CrtAllocator::Free ( void *  ptr)
inlinestatic
162 { free(ptr); }

◆ Malloc()

void* rapidjson::CrtAllocator::Malloc ( size_t  size)
inline
160 { return malloc(size); }

◆ Realloc()

void* rapidjson::CrtAllocator::Realloc ( void *  originalPtr,
size_t  originalSize,
size_t  newSize 
)
inline
161 { (void)originalSize; return realloc(originalPtr, newSize); }

Member Data Documentation

◆ kNeedFree

const bool rapidjson::CrtAllocator::kNeedFree = true
static

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