VarArrayVarCount.h 627 B

123456789101112131415161718192021
  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. #pragma once
  6. namespace Js
  7. {
  8. struct VarArrayVarCount
  9. {
  10. Var count;
  11. Var elements[];
  12. VarArrayVarCount(Var count) : count(count)
  13. {
  14. }
  15. void SetCount(uint count);
  16. size_t GetDataSize() const;
  17. };
  18. };