Electroneum
Loading...
Searching...
No Matches
myjson::MyAllocator Class Reference

Public Member Functions

void * Malloc (size_t _size)
void * Realloc (void *_org_p, size_t _org_size, size_t _new_size)

Static Public Member Functions

static void Free (void *_p)

Static Public Attributes

static const bool kNeedFree = true

Detailed Description

Definition at line 1499 of file pointertest.cpp.

Member Function Documentation

◆ Free()

void myjson::MyAllocator::Free ( void * _p)
inlinestatic

Definition at line 1505 of file pointertest.cpp.

1505{ return free(_p); }

◆ Malloc()

void * myjson::MyAllocator::Malloc ( size_t _size)
inline

Definition at line 1503 of file pointertest.cpp.

1503{ return malloc(_size); }

◆ Realloc()

void * myjson::MyAllocator::Realloc ( void * _org_p,
size_t _org_size,
size_t _new_size )
inline

Definition at line 1504 of file pointertest.cpp.

1504{ (void)_org_size; return realloc(_org_p, _new_size); }

Member Data Documentation

◆ kNeedFree

const bool myjson::MyAllocator::kNeedFree = true
static

Definition at line 1502 of file pointertest.cpp.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/test/unittest/pointertest.cpp