OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "xfa/fgas/crt/fgas_utils.h" | 7 #include "xfa/fgas/crt/fgas_utils.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fxcrt/include/fx_basic.h" | 11 #include "core/fxcrt/fx_basic.h" |
12 | 12 |
13 class FX_BASEARRAYDATA : public CFX_Target { | 13 class FX_BASEARRAYDATA : public CFX_Target { |
14 public: | 14 public: |
15 FX_BASEARRAYDATA(int32_t growsize, int32_t blocksize); | 15 FX_BASEARRAYDATA(int32_t growsize, int32_t blocksize); |
16 ~FX_BASEARRAYDATA() override; | 16 ~FX_BASEARRAYDATA() override; |
17 | 17 |
18 int32_t iGrowSize; | 18 int32_t iGrowSize; |
19 int32_t iBlockSize; | 19 int32_t iBlockSize; |
20 int32_t iTotalCount; | 20 int32_t iTotalCount; |
21 int32_t iBlockCount; | 21 int32_t iBlockCount; |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } | 423 } |
424 int32_t CFX_BaseStack::GetSize() const { | 424 int32_t CFX_BaseStack::GetSize() const { |
425 return m_pData->m_iBlockCount; | 425 return m_pData->m_iBlockCount; |
426 } | 426 } |
427 uint8_t* CFX_BaseStack::GetAt(int32_t index) const { | 427 uint8_t* CFX_BaseStack::GetAt(int32_t index) const { |
428 return m_pData->GetAt(index); | 428 return m_pData->GetAt(index); |
429 } | 429 } |
430 void CFX_BaseStack::RemoveAll(FX_BOOL bLeaveMemory) { | 430 void CFX_BaseStack::RemoveAll(FX_BOOL bLeaveMemory) { |
431 m_pData->RemoveAll(bLeaveMemory); | 431 m_pData->RemoveAll(bLeaveMemory); |
432 } | 432 } |
OLD | NEW |