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

Side by Side Diff: xfa/fxbarcode/common/BC_CommonBitArray.h

Issue 2649563003: Replace CFX_ByteArray with CFX_ArrayTemplate<uint8_t> (Closed)
Patch Set: re-upload Created 3 years, 11 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 | « xfa/fxbarcode/BC_Utils.cpp ('k') | xfa/fxbarcode/common/BC_CommonBitArray.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 XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_ 7 #ifndef XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_
8 #define XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_ 8 #define XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
11 11
12 class CBC_CommonBitArray { 12 class CBC_CommonBitArray {
13 public: 13 public:
14 explicit CBC_CommonBitArray(CBC_CommonBitArray* array); 14 explicit CBC_CommonBitArray(CBC_CommonBitArray* array);
15 explicit CBC_CommonBitArray(int32_t size); 15 explicit CBC_CommonBitArray(int32_t size);
16 CBC_CommonBitArray(); 16 CBC_CommonBitArray();
17 virtual ~CBC_CommonBitArray(); 17 virtual ~CBC_CommonBitArray();
18 18
19 int32_t GetSize(); 19 int32_t GetSize();
20 CFX_Int32Array& GetBits(); 20 CFX_ArrayTemplate<int32_t>& GetBits();
21 int32_t GetSizeInBytes(); 21 int32_t GetSizeInBytes();
22 bool Get(int32_t i); 22 bool Get(int32_t i);
23 void Set(int32_t i); 23 void Set(int32_t i);
24 void Flip(int32_t i); 24 void Flip(int32_t i);
25 void SetBulk(int32_t i, int32_t newBits); 25 void SetBulk(int32_t i, int32_t newBits);
26 bool IsRange(int32_t start, int32_t end, bool value, int32_t& e); 26 bool IsRange(int32_t start, int32_t end, bool value, int32_t& e);
27 int32_t* GetBitArray(); 27 int32_t* GetBitArray();
28 void Reverse(); 28 void Reverse();
29 void Clear(); 29 void Clear();
30 30
31 private: 31 private:
32 int32_t m_size; 32 int32_t m_size;
33 CFX_Int32Array m_bits; 33 CFX_ArrayTemplate<int32_t> m_bits;
34 }; 34 };
35 35
36 #endif // XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_ 36 #endif // XFA_FXBARCODE_COMMON_BC_COMMONBITARRAY_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/BC_Utils.cpp ('k') | xfa/fxbarcode/common/BC_CommonBitArray.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698