blob: fe0a67ffd12c53bc275b6a90fac2cb32ba36e6a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _BC_COMMONBYTEARRAY_H_
#define _BC_COMMONBYTEARRAY_H_
class CBC_CommonByteArray;
class CBC_CommonByteArray : public CFX_Object
{
private:
FX_INT32 m_size;
FX_INT32 m_index;
FX_BYTE* m_bytes;
public:
CBC_CommonByteArray();
CBC_CommonByteArray(FX_INT32 size);
CBC_CommonByteArray(FX_BYTE* byteArray, FX_INT32 size);
virtual ~CBC_CommonByteArray();
FX_INT32 At(FX_INT32 index);
void Set(FX_INT32 index, FX_INT32 value);
FX_INT32 Size();
FX_BOOL IsEmpty();
void AppendByte(FX_INT32 value);
void Reserve(FX_INT32 capacity);
void Set(FX_BYTE* source, FX_INT32 offset, FX_INT32 count);
void Set(CFX_ByteArray* source, FX_INT32 offset, FX_INT32 count);
};
#endif
|