Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Json::RapidjsonStackAllocator< SizeN, AlignN > Class Template Reference

#include <RapidjsonAllocatorAdapter.h>

Public Member Functions

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

Static Public Member Functions

static void Free (void *)
 

Static Public Attributes

static constexpr bool kNeedFree = false
 Stack allocator doesn't support freeing allocated memory at all.
 

Detailed Description

template<size_t SizeN, size_t AlignN = alignof(AZStd::byte)>
class AZ::Json::RapidjsonStackAllocator< SizeN, AlignN >

Allocator which uses the a predefined buffer to allocate memory In most cases this is stack memory But if this allocator is a member of a class that is dynamically allocated, then it is heap memory Implements the rapidjson::Allocator concept https://rapidjson.org/md_doc_internals.html#InternalAllocator This


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