diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Allocator/LowLevelDefaultAllocator.h |
Diffstat (limited to 'Runtime/Allocator/LowLevelDefaultAllocator.h')
-rw-r--r-- | Runtime/Allocator/LowLevelDefaultAllocator.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Runtime/Allocator/LowLevelDefaultAllocator.h b/Runtime/Allocator/LowLevelDefaultAllocator.h new file mode 100644 index 0000000..ce9b852 --- /dev/null +++ b/Runtime/Allocator/LowLevelDefaultAllocator.h @@ -0,0 +1,25 @@ +#ifndef LOW_LEVEL_DEFAULT_ALLOCATOR_H_ +#define LOW_LEVEL_DEFAULT_ALLOCATOR_H_ + +#if ENABLE_MEMORY_MANAGER + +class LowLevelAllocator +{ +public: + static void* Malloc(size_t size); + static void* Realloc(void* ptr, size_t size); + static void Free(void* ptr); +}; + +#if UNITY_XENON +class LowLevelAllocatorDebugMem +{ +public: + static void* Malloc(size_t size); + static void* Realloc(void* ptr, size_t size); + static void Free(void* ptr); +}; +#endif + +#endif +#endif // LOW_LEVEL_DEFAULT_ALLOCATOR_H_ |