Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: core/include/fxcrt/fx_basic.h

Issue 1655423002: Merge to XFA: Kill CFX_ByteArray in master. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Still wonked. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fpdfdoc/fpdf_doc.h ('k') | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CORE_INCLUDE_FXCRT_FX_BASIC_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_
8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 if (iStart < 0) { 428 if (iStart < 0) {
429 return -1; 429 return -1;
430 } 430 }
431 for (; iStart < (int)m_nSize; iStart++) 431 for (; iStart < (int)m_nSize; iStart++)
432 if (((TYPE*)m_pData)[iStart] == data) { 432 if (((TYPE*)m_pData)[iStart] == data) {
433 return iStart; 433 return iStart;
434 } 434 }
435 return -1; 435 return -1;
436 } 436 }
437 }; 437 };
438 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray;
439 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; 438 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray;
440 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; 439 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray;
441 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; 440 typedef CFX_ArrayTemplate<void*> CFX_PtrArray;
442 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray; 441 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray;
443 #ifdef PDF_ENABLE_XFA 442 #ifdef PDF_ENABLE_XFA
444 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; 443 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray;
444 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray;
445 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; 445 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array;
446 #endif // PDF_ENABLE_XFA 446 #endif // PDF_ENABLE_XFA
447 447
448 template <class ObjectClass> 448 template <class ObjectClass>
449 class CFX_ObjectArray : public CFX_BasicArray { 449 class CFX_ObjectArray : public CFX_BasicArray {
450 public: 450 public:
451 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} 451 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {}
452 452
453 ~CFX_ObjectArray() { RemoveAll(); } 453 ~CFX_ObjectArray() { RemoveAll(); }
454 454
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 FX_FLOAT c; 1220 FX_FLOAT c;
1221 FX_FLOAT d; 1221 FX_FLOAT d;
1222 FX_FLOAT e; 1222 FX_FLOAT e;
1223 FX_FLOAT f; 1223 FX_FLOAT f;
1224 FX_FLOAT g; 1224 FX_FLOAT g;
1225 FX_FLOAT h; 1225 FX_FLOAT h;
1226 FX_FLOAT i; 1226 FX_FLOAT i;
1227 }; 1227 };
1228 1228
1229 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ 1229 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_doc.h ('k') | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698