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 #ifndef XFA_FGAS_CRT_FGAS_UTILS_H_ | 7 #ifndef XFA_FGAS_CRT_FGAS_UTILS_H_ |
8 #define XFA_FGAS_CRT_FGAS_UTILS_H_ | 8 #define XFA_FGAS_CRT_FGAS_UTILS_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 uint8_t* AddSpaceTo(int32_t index); | 195 uint8_t* AddSpaceTo(int32_t index); |
196 uint8_t* GetAt(int32_t index) const; | 196 uint8_t* GetAt(int32_t index) const; |
197 int32_t Append(const CFX_BaseMassArrayImp& src, | 197 int32_t Append(const CFX_BaseMassArrayImp& src, |
198 int32_t iStart = 0, | 198 int32_t iStart = 0, |
199 int32_t iCount = -1); | 199 int32_t iCount = -1); |
200 int32_t Copy(const CFX_BaseMassArrayImp& src, | 200 int32_t Copy(const CFX_BaseMassArrayImp& src, |
201 int32_t iStart = 0, | 201 int32_t iStart = 0, |
202 int32_t iCount = -1); | 202 int32_t iCount = -1); |
203 int32_t RemoveLast(int32_t iCount = -1); | 203 int32_t RemoveLast(int32_t iCount = -1); |
204 void RemoveAll(FX_BOOL bLeaveMemory = FALSE); | 204 void RemoveAll(FX_BOOL bLeaveMemory = FALSE); |
205 | |
205 int32_t m_iChunkSize; | 206 int32_t m_iChunkSize; |
206 int32_t m_iBlockSize; | 207 int32_t m_iBlockSize; |
207 int32_t m_iChunkCount; | 208 int32_t m_iChunkCount; |
208 int32_t m_iBlockCount; | 209 int32_t m_iBlockCount; |
209 CFX_PtrArray* m_pData; | 210 CFX_ArrayTemplate<void*>* m_pData; |
Tom Sepez
2016/04/29 16:03:16
Note: this really does want to be a void*, since i
| |
210 | 211 |
211 protected: | 212 protected: |
212 void Append(int32_t iDstStart, | 213 void Append(int32_t iDstStart, |
213 const CFX_BaseMassArrayImp& src, | 214 const CFX_BaseMassArrayImp& src, |
214 int32_t iSrcStart = 0, | 215 int32_t iSrcStart = 0, |
215 int32_t iSrcCount = -1); | 216 int32_t iSrcCount = -1); |
216 }; | 217 }; |
217 | 218 |
218 class CFX_BaseMassArray : public CFX_Target { | 219 class CFX_BaseMassArray : public CFX_Target { |
219 protected: | 220 protected: |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
728 pLast->SetNextNode(pChild); | 729 pLast->SetNextNode(pChild); |
729 } | 730 } |
730 return pChild; | 731 return pChild; |
731 } | 732 } |
732 | 733 |
733 protected: | 734 protected: |
734 CPLTreeNode m_Root; | 735 CPLTreeNode m_Root; |
735 }; | 736 }; |
736 | 737 |
737 #endif // XFA_FGAS_CRT_FGAS_UTILS_H_ | 738 #endif // XFA_FGAS_CRT_FGAS_UTILS_H_ |
OLD | NEW |