summaryrefslogtreecommitdiff
path: root/XMPCommon/source/IMemoryAllocator_I.cpp
blob: 4c76afacab0c564740bbc4ba6af7a4c0286149d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// =================================================================================================
// Copyright Adobe
// Copyright 2020 Adobe
// All Rights Reserved
//
// NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it. 
// =================================================================================================

#include "XMPCommon/Interfaces/IMemoryAllocator_I.h"
#include "XMPCommon/ImplHeaders/MemoryAllocatorWrapperImpl.h"


namespace XMP_COMPONENT_INT_NAMESPACE {

	static MemoryAllocatorWrapperImpl sDefaultMemoryAllocator;

	pIMemoryAllocator IMemoryAllocator_I::GetMemoryAllocator() __NOTHROW__ {
		return &sDefaultMemoryAllocator;
	}

	pIMemoryAllocator IMemoryAllocator_I::SetMemoryAllocator( pIMemoryAllocator_base memoryAllocator ) __NOTHROW__ {
		return sDefaultMemoryAllocator.SetMemoryAllocator( memoryAllocator );
	}

}