GrowingArray.cpp 682 B

12345678910111213141516
  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. GrowingUint32HeapArray* GrowingArray<uint32, HeapAllocator>::Create(uint32 _length)
  11. {
  12. return HeapNew(GrowingUint32HeapArray, &HeapAllocator::Instance, _length);
  13. }
  14. }