GrowingArray.cpp 698 B

1234567891011121314151617
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #include "CommonDataStructuresPch.h"
  6. #include "Common/UInt32Math.h"
  7. #include "DataStructures/GrowingArray.h"
  8. namespace JsUtil
  9. {
  10. template <>
  11. GrowingUint32HeapArray* GrowingArray<uint32, HeapAllocator>::Create(uint32 _length)
  12. {
  13. return HeapNew(GrowingUint32HeapArray, &HeapAllocator::Instance, _length);
  14. }
  15. }