gwnavruntime/basesystem/straightmalloc.h Source File

straightmalloc.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 #ifndef Navigation_StraightMalloc_H
9 #define Navigation_StraightMalloc_H
10 
11 
13 
14 
15 namespace Kaim {
16 
17 
22 {
23 public:
24 
25  static void* Alloc(UPInt size);
26  static void* Realloc(void* oldPtr, UPInt newSize);
27 
31  static void* Alloc(UPInt size, UPInt align);
32 
33  static void Free(void* ptr);
34 };
35 
36 
41 {
42 public:
43  static void* Alloc(UPInt size, UPInt align);
44  static void Free(void* ptr, UPInt size, UPInt align);
45  static void* Realloc(void* oldPtr, UPInt oldSize, UPInt newSize, UPInt align);
46 };
47 
48 }
49 
50 #endif
multi-platform abstraction of malloc/free/realloc Note that this is used only by the generation throu...
Definition: straightmalloc.h:21
multi-platform abstraction of malloc/free/realloc Note that this is used via GeneratorSysAlloc and it...
Definition: straightmalloc.h:41
static void * Alloc(UPInt size)
Alloc without alignment.
Definition: gamekitcrowddispersion.h:20
static void * Realloc(void *oldPtr, UPInt newSize)
Realloc without alignment.