ReactOS  0.4.15-dev-5461-g062a8f2
CLocalAllocator Class Reference

#include <atlalloc.h>

Static Public Member Functions

static voidAllocate (_In_ size_t size)
static voidReallocate (_In_opt_ void *ptr, _In_ size_t size)
static void Free (_In_opt_ void *ptr)

Detailed Description

Definition at line 43 of file atlalloc.h.

Member Function Documentation

◆ Allocate()

static void* CLocalAllocator::Allocate ( _In_ size_t  size)

Definition at line 46 of file atlalloc.h.

47  {
49  }
#define LMEM_FIXED
Definition: winbase.h:368
GLsizeiptr size
Definition: glext.h:5919
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1373

Referenced by Reallocate().

◆ Free()

static void CLocalAllocator::Free ( _In_opt_ void ptr)

Definition at line 63 of file atlalloc.h.

64  {
66  }
static PVOID ptr
Definition: dispmode.c:27
Definition: heapmem.c:1577

Referenced by Reallocate().

◆ Reallocate()

static void* CLocalAllocator::Reallocate ( _In_opt_ void ptr,
_In_ size_t  size 

Definition at line 51 of file atlalloc.h.

52  {
53  if (!ptr)
54  return Allocate(size);
55  if (size == 0)
56  {
57  Free(ptr);
58  return NULL;
59  }
61  }
static void * Allocate(_In_ size_t size)
Definition: atlalloc.h:46
static PVOID ptr
Definition: dispmode.c:27
static void Free(_In_opt_ void *ptr)
Definition: atlalloc.h:63
GLsizeiptr size
Definition: glext.h:5919
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:1608
#define NULL
Definition: types.h:112

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