42 #ifndef _FX_EXCEPTION_H_ 130 if (m_AllocSize <= m_DataSize)
135 m_pBuffer[m_DataSize++] = byte;
189 void Delete(
int start_index,
int count);
462 void GetWideStringL(CFX_WideStringL& wideText)
const;
788 virtual void Clear();
852 virtual FX_BOOL DoWork(
const void* pBuf,
size_t size) = 0;
889 virtual void Clear();
935 virtual FX_BOOL DoWork(
const void* pBuf,
size_t size);
1060 void GetResult(CFX_WideStringL &result)
const {m_Buffer.GetWideStringL(result);}
1214 FX_BOOL SetSize(
int nNewSize,
int nGrowBy);
1242 FX_LPBYTE InsertSpaceAt(
int nIndex,
int nCount);
1252 FX_BOOL RemoveAt(
int nIndex,
int nCount);
1271 const void* GetDataPtr(
int index)
const;
1287 template<
class TYPE>
1334 const char *errorMsg[] = {
1335 "Invalid array size",
1336 "Memory allocation error",
1340 fprintf(stderr,
"%s\n", errorMsg[error]);
1342 fprintf(stderr,
"%i\n", badIndex);
1370 return CFX_BasicArray::SetSize(nNewSize, nGrowBy);
1388 if (nIndex < 0 || nIndex >= m_nSize)
1392 return ((
const TYPE*)m_pData)[nIndex];
1404 if (nIndex < 0 || nIndex >= m_nSize)
return false;
1405 ((TYPE*)m_pData)[nIndex] = newElement;
1418 if (nIndex < 0 || nIndex >= m_nSize)
1422 return ((TYPE*)m_pData)[nIndex];
1430 const TYPE*
GetData()
const {
return (
const TYPE*)m_pData; }
1449 if (nIndex < 0)
return false;
1450 if (nIndex >= m_nSize)
1451 if (!
SetSize(nIndex+1, -1))
return false;
1452 ((TYPE*)m_pData)[nIndex] = newElement;
1465 if (m_nSize < m_nMaxSize)
1468 if (!
SetSize(m_nSize+1, -1))
return false;
1469 ((TYPE*)m_pData)[m_nSize-1] = newElement;
1498 TYPE*
GetDataPtr(
int index) {
return (TYPE*)CFX_BasicArray::GetDataPtr(index); }
1505 TYPE*
AddSpace() {
return (TYPE*)CFX_BasicArray::InsertSpaceAt(m_nSize, 1); }
1515 TYPE*
InsertSpaceAt(
int nIndex,
int nCount) {
return (TYPE*)CFX_BasicArray::InsertSpaceAt(nIndex, nCount); }
1535 if (nIndex < 0 || nIndex >= m_nSize)
1537 *(
volatile char*)0 =
'\0';
1538 return ((
const TYPE*)m_pData)[nIndex];
1551 if (nIndex < 0 || nIndex >= m_nSize)
1553 *(
volatile char*)0 =
'\0';
1554 return ((TYPE*)m_pData)[nIndex];
1570 ((TYPE*)m_pData)[nIndex++] = newElement;
1582 FX_BOOL RemoveAt(
int nIndex,
int nCount = 1) {
return CFX_BasicArray::RemoveAt(nIndex, nCount); }
1601 int Find(
const TYPE& data,
int iStart = 0)
const 1603 if (iStart < 0)
return -1;
1604 for (; iStart < (int)m_nSize; iStart ++)
1605 if (((TYPE*)m_pData)[iStart] == data)
return iStart;
1635 template <
class ObjectClass>
1685 void Add(
const ObjectClass& data)
1687 #ifndef _FX_NOPLACEMENTNEW_ 1688 new ((
void*)InsertSpaceAt(m_nSize, 1)) ObjectClass(data);
1690 ::new ((
void*)InsertSpaceAt(m_nSize, 1)) ObjectClass(data);
1704 #ifndef _FX_NOPLACEMENTNEW_ 1705 return *(ObjectClass*)
new ((
void*)InsertSpaceAt(m_nSize, 1)) ObjectClass();
1707 return *(ObjectClass*) ::
new ((
void*)InsertSpaceAt(m_nSize, 1)) ObjectClass();
1720 return InsertSpaceAt(m_nSize, 1);
1735 if (nCount == 0)
return 0;
1737 if (!nSize)
return 0;
1739 if (nCount < 0) nCount = nSize;
1740 if (nStart + nCount > nSize) nCount = nSize - nStart;
1741 if (nCount < 1)
return 0;
1743 InsertSpaceAt(m_nSize, nCount);
1744 ObjectClass* pStartObj = (ObjectClass*)
GetDataPtr(nSize);
1745 nSize = nStart + nCount;
1746 for (
FX_INT32 i = nStart; i < nSize; i ++, pStartObj++)
1748 #ifndef _FX_NOPLACEMENTNEW_ 1749 new ((
void*)pStartObj) ObjectClass(src[i]);
1751 ::new ((
void*)pStartObj) ObjectClass(src[i]);
1770 if (
this == &src)
return 0;
1772 if (nCount == 0)
return 0;
1774 if (!nSize)
return 0;
1776 if (nCount < 0) nCount = nSize;
1777 if (nStart + nCount > nSize) nCount = nSize - nStart;
1778 if (nCount < 1)
return 0;
1779 nSize = nStart + nCount;
1780 SetSize(nCount, -1);
1781 ObjectClass* pStartObj = (ObjectClass*)m_pData;
1782 for (
FX_INT32 i = nStart; i < nSize; i ++, pStartObj++)
1784 #ifndef _FX_NOPLACEMENTNEW_ 1785 new ((
void*)pStartObj) ObjectClass(src[i]);
1787 ::new ((
void*)pStartObj) ObjectClass(src[i]);
1812 return *(ObjectClass*)CFX_BasicArray::GetDataPtr(index);
1822 ObjectClass*
GetDataPtr(
int index)
const {
return (ObjectClass*)CFX_BasicArray::GetDataPtr(index);}
1834 ((ObjectClass*)
GetDataPtr(index))->~ObjectClass();
1835 CFX_BasicArray::RemoveAt(index, 1);
1845 for (
int i = 0; i < m_nSize; i ++)
1846 ((ObjectClass*)
GetDataPtr(i))->~ObjectClass();
1847 CFX_BasicArray::SetSize(0, -1);
1859 template <
class TYPE>
1873 return m_Container.GetSize() == 0;
1883 return m_Container.GetSize();
1893 return m_Container[
Size() - 1];
1903 m_Container.RemoveAt(
Size() - 1);
1915 m_Container.Add(val);
1925 template <
class TYPE>
1939 return m_Container.
GetSize() == 0;
1959 return m_Container[
Size() - 1];
1981 m_Container.
Add(val);
2005 return m_Container.GetSize() == 0;
2015 return m_Container.GetSize();
2025 return m_Container[
Size() - 1];
2035 m_Container.RemoveAt(
Size() - 1);
2047 m_Container.Add(val);
2084 void SetUnitSize(
int unit_size,
int segment_units,
int index_size = 8);
2100 void*
GetAt(
int index)
const;
2117 void Delete(
int index,
int count = 1);
2148 void*
Iterate(
FX_BOOL (*callback)(
void* param,
void* pData),
void* param)
const;
2156 short m_SegmentSize;
2166 void** GetIndex(
int seg_index)
const;
2167 void* IterateIndex(
int level,
int& start,
void** pIndex,
FX_BOOL (*callback)(
void* param,
void* pData),
void* param)
const;
2168 void* IterateSegment(
FX_LPCBYTE pSegment,
int count,
FX_BOOL (*callback)(
void* param,
void* pData),
void* param)
const;
2174 template <
class ElementType>
2218 template <
class DataType,
int FixedSize>
2229 : m_pAllocator(pAllocator)
2243 : m_pAllocator(pAllocator)
2246 if (data_size > FixedSize)
2264 if (data_size > FixedSize)
2276 operator DataType*() {
return m_pData ? m_pData : m_Data; }
2281 DataType m_Data[FixedSize];
2288 template <
class DataType>
2313 DataType& operator[](
int i) {
FXSYS_assert(m_pData !=
NULL);
return m_pData[i]; }
2314 operator DataType*()
const {
return m_pData; }
2411 void SetAt(
void* key,
void* newValue) { (*this)[key] = newValue; }
2473 CAssoc** m_pHashTable;
2479 CAssoc* m_pFreeList;
2481 struct CFX_Plex* m_pBlocks;
2506 void FreeAssoc(CAssoc* pAssoc);
2515 CAssoc* GetAssocAt(
void* key,
FX_DWORD& hash)
const;
2523 CAssoc* GetCurrentAssoc(
FX_POSITION& rNextPosition)
const;
2537 template <
class KeyType,
class ValueType>
2604 void* pKey =
NULL;
void* pValue =
NULL;
2837 CAssoc** m_pHashTable;
2843 CAssoc* m_pFreeList;
2845 struct CFX_Plex* m_pBlocks;
2862 void FreeAssoc(CAssoc* pAssoc);
2879 CAssoc* GetCurrentAssoc(
FX_POSITION& rNextPosition)
const;
3197 struct CFX_Plex* m_pBlocks;
3209 CNode* NewNode(CNode* pPrev, CNode* pNext);
3215 void FreeNode(CNode* pNode);
3336 if (!module_id)
return false;
3338 for (
FX_DWORD n = 0; n < nCount; n++) {
3339 if (m_DataList[n].m_pModuleId == module_id) {
3340 pData = m_DataList[n].m_pData;
3530 m_pObject = ref.m_pObject;
3539 if (!m_pObject)
return;
3562 if (!m_pObject)
return NULL;
3583 m_pObject = ref.m_pObject;
3596 if (m_pObject ==
NULL)
return;
3603 #if defined(_FX_MANAGED_CODE_) && defined(GetObject) 3620 operator const ObjClass*()
const 3632 return m_pObject ==
NULL;
3641 return m_pObject !=
NULL;
3654 if (m_pObject ==
NULL) {
3676 if (m_pObject ==
NULL)
return;
3692 return m_pObject == ref.m_pObject;
3702 return m_pObject ? m_pObject->
m_RefCount : 0;
3712 if (m_pObject ==
NULL)
return;
3723 if (m_pObject ==
NULL)
return;
3733 CountedObj* m_pObject;
3845 virtual void v_ResetStatistics() {};
3865 template<
typename T>
3874 m_Location = location;
3875 m_OldValue = *location;
3925 #define FX_DATALIST_LENGTH 1024 3928 template<
size_t unit>
3969 for (
FX_INT32 i = m_DataLists.GetUpperBound(); i >= 0; i--){
3970 DataList list = m_DataLists.ElementAt(i);
3973 m_DataLists.RemoveAll();
3987 if (nStart < 0)
return;
3996 if (!list.data)
break;
3998 list.
start = nStart;
3999 list.
count = temp_count;
4004 nCount -= temp_count;
4005 nStart += temp_count;
4024 if (nIndex < 0)
return NULL;
4025 if (m_CurList < 0 || m_CurList >= m_DataLists.GetSize())
return NULL;
4026 DataList *pCurList = m_DataLists.GetDataPtr(m_CurList);
4027 if (!pCurList || nIndex < pCurList->start || nIndex >= pCurList->
start + pCurList->
count){
4030 FX_INT32 iEnd = m_DataLists.GetUpperBound();
4031 while (iStart <= iEnd){
4032 FX_INT32 iMid = (iStart + iEnd) / 2;
4033 DataList* list = m_DataLists.GetDataPtr(iMid);
4034 if (nIndex < list->start)
4036 else if (nIndex >= list->
start + list->
count)
4045 return pCurList ? pCurList->data + (nIndex - pCurList->
start) * unit :
NULL;
4052 FX_INT32 iEnd = m_DataLists.GetUpperBound();
4054 while (iStart <= iEnd) {
4055 FX_INT32 iMid = (iStart + iEnd) / 2;
4056 DataList* cur_list = m_DataLists.GetDataPtr(iMid);
4057 if (list.start == cur_list->start){
4059 }
else if (list.start < cur_list->start + cur_list->count)
4066 DataList* next_list = m_DataLists.GetDataPtr(iMid + 1);
4067 if (list.start == next_list->start){
4069 }
else if (list.start < next_list->start){
4077 m_DataLists.InsertAt(iFind, list);
4086 template<
typename T1,
typename T2>
4110 m_Data.Append(nStart, nCount);
4125 return (T2&)(*(
volatile T2*)data);
4137 return (T2*)m_Data.GetAt(nIndex);
4168 #define ProgressiveStatus FX_ProgressiveStatus 4170 #ifdef _FX_NO_NAMESPACE_ 4172 #define FX_NAMESPACE_DECLARE(namespace, type) type 4176 #define FX_NAMESPACE_DECLARE(namespace, type) namespace::type 4203 #define FX_IsOdd(a) ((a) & 1) 4208 #endif // _FX_BASIC_H_ Definition: fx_basic.h:3752
void GetNextAssoc(FX_POSITION &rNextPosition, CFX_ByteString &rKey, void *&rValue) const
Get the current association and set the position to next association.
void SetAt(FX_BSTR key, void *newValue)
Add a new (key, value) pair. Add if not exist, otherwise modify.
Definition: fx_basic.h:2758
FX_POSITION GetStartPosition() const
Get the first key-value pair position. iterating all (key, value) pairs.
Definition: fx_basic.h:3262
CFX_WideTextBuf & operator<<(int i)
Left shifts(<<) operator overload. Output a integer to the wide text buffer.
CNode * pNext
Pointer to next node.
Definition: fx_basic.h:3016
CFX_WideStringC GetResult() const
Get the result.
Definition: fx_basic.h:1051
void * FX_LPVOID
Pointer to any type.
Definition: fx_system.h:632
void RemoveAll()
Remove all the (key, value) pairs in the map.
Dynamic binary buffers designed for more efficient appending.
Definition: fx_basic.h:52
Definition: fx_basic.h:2057
Definition: fx_basic.h:4181
Ready.
Definition: fx_basic.h:4155
~CFX_MapByteStringToPtr()
The destructor.
void Add(const ObjectClass &data)
Add a copy of an existing object to the array.
Definition: fx_basic.h:1685
Header file for Streams related definitions and classes.
wchar_t FX_WCHAR
Compiler dependant Unicode character (16-bit for Microsoft Compiler, 32-bit for gcc).
Definition: fx_system.h:708
Bidirectional node in CFX_PtrList.
Definition: fx_basic.h:3013
FX_LPVOID m_pModuleId
Module ID.
Definition: fx_basic.h:3244
CFX_ByteStringC GetResult() const
Get the result.
Definition: fx_basic.h:1107
TYPE & operator[](int nIndex)
Subscript([]) operator overload. This function returns a reference to the specified element specified...
Definition: fx_basic.h:1549
unsigned long FX_DWORD
32-bit unsigned integer.
Definition: fx_system.h:702
Definition: fx_basic.h:1074
FX_BOOL RemovePrivateData(FX_LPVOID module_id)
Remove previously stored private data. FPDFAPI assumes the module has deallocated the data,...
FX_BOOL AppendChar(FX_WCHAR wch)
Append a single wide character.
int Size() const
Get size of the container.
Definition: fx_basic.h:2013
FX_BOOL IsEmpty() const
Verify whether the map is empty.
Definition: fx_basic.h:2373
FX_POSITION InsertAfter(FX_POSITION pos, void *newElement)
Insert a value after specified position.
CONSTANT WIDE STRING CLASS.
Definition: fx_string.h:1205
ElementType & operator[](int index)
Subscript([]) operator overload. This function returns a ref to the specified element specified by th...
Definition: fx_basic.h:2209
Not Found.
Definition: fx_basic.h:4161
Association in CFX_MapByteStringToPtr.
Definition: fx_basic.h:2694
IFX_Allocator * m_pAllocator
Special allocator pointer. NULL to use default allocator.
Definition: fx_basic.h:1171
void Incref()
Increase the reference.
Definition: fx_basic.h:3710
void Delete(int index, int count=1)
Delete a number of elements.
Definition: fx_basic.h:1860
~CFX_ObjectArray()
The destructor.
Definition: fx_basic.h:1649
void GetNextAssoc(FX_POSITION &rNextPosition, void *&rKey, void *&rValue) const
Get the current association and set the position to next association.
#define FX_Allocator_Alloc(fxAllocator, type, size)
Release-mode allocation on an allocator.
Definition: fx_memory.h:1050
FX_STRSIZE GetLength() const
Get the length of the byte string.
Definition: fx_string.h:227
CFX_ArrayTemplate< FX_DWORD > CFX_DWordArray
Type definition for a double-word array type.
Definition: fx_basic.h:1615
TYPE & ElementAt(int nIndex)
This method retrieves a ref to an element specified by an index number.
Definition: fx_basic.h:1416
CFX_ObjectArray(const CFX_ObjectArray &other, IFX_Allocator *pAllocator=0)
The copy constructor.
Definition: fx_basic.h:1657
void AddValue(FX_BSTR key, void *pValue)
Add a key-value pair to the dictionary, assuming there is no duplicated key existing.
T2 * GetPtrAt(FX_INT32 nIndex)
Get a point to data.
Definition: fx_basic.h:4135
void Push(const CFX_ByteString &val)
Push the byte string to stack.
Definition: fx_basic.h:2045
CFX_ArrayTemplate< FX_WORD > CFX_WordArray
Type definition for a word array type.
Definition: fx_basic.h:1613
void RemoveAll()
Remove all nodes in the list.
int GetCount() const
Get the number of key-value pairs.
CFX_ByteTextBuf & operator<<(int i)
Left shifts(<<) operator overload. Output an integer to the byte text buffer.
FX_BOOL IsNull() const
Check if the pointer of the object is NULL.
Definition: fx_basic.h:3630
CFX_FixedBufGrow(IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:2228
void * data
Node data.
Definition: fx_basic.h:3020
void SetAt(FX_DWORD key, FX_DWORD value)
Add a new (key, value) pair. Add if not exist, otherwise modify.
static CFX_CharMap * GetDefaultMapper(FX_INT32 codepage=0)
Get a character mapper according to Windows code page or other encoding system. This char maps are ma...
FX_BOOL Empty() const
Empty the container.
Definition: fx_basic.h:1937
void Init(FX_LPCBYTE pData, FX_DWORD dwSize)
Initialize the bit-stream with a memory block. Must call Init() first.
CFX_ByteString key
Key data.
Definition: fx_basic.h:2702
void SetAt(KeyType key, ValueType newValue)
Add a new (key, value) pair. Add if not exist, otherwise modify.
Definition: fx_basic.h:2582
FX_POSITION GetStartPosition() const
Get the first key-value pair position. iterating all (key, value) pairs.
Definition: fx_basic.h:2781
FX_INT32(* m_GetCodePage)()
A pointer type to GetCodePage function. The function return a code page of the platform.
Definition: fx_basic.h:993
void GetByteStringL(CFX_ByteStringL &str) const
Get a byte string from current buffer object.
CFX_BinaryBuf(IFX_Allocator *pAllocator=0)
A default constructor creating an empty buffer.
void SetAt(void *key, void *newValue)
Add a new (key, value) pair. Add if not exist, otherwise modify.
Definition: fx_basic.h:2411
void(* PD_CALLBACK_FREEDATA)(FX_LPVOID pData)
Definition: fx_basic.h:3229
wchar_t const * FX_LPCWSTR
Pointer to constant Unicode characters.
Definition: fx_system.h:712
CFX_ObjectArray & operator=(const CFX_ObjectArray &other)
The assignment operator.
Definition: fx_basic.h:1670
FX_BOOL m_bSelfDestruct
A boolean value to decide whether it is using self destruct for private data. If this is true,...
Definition: fx_basic.h:3256
void * Add()
Add an element.
#define GetObject
Get object information. GetObjectW defined for unicode-mode, GetObjectA for ansi-mode.
Definition: fx_system.h:540
FX_LPVOID m_pData
Private data.
Definition: fx_basic.h:3247
CFX_WideTextBuf(IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:345
FX_BOOL Flush()
Flush internal buffer of the file.
void FilterFinish(CFX_BinaryBuf &dest_buf)
Indicate the input finished. For some filters, there might be some last output generated.
FX_INT32 start
The start index.
Definition: fx_basic.h:3935
CFX_Stack()
Construct.
Definition: fx_basic.h:1996
~CFX_CountRef()
Destruct a reference and release the object it refers to.
Definition: fx_basic.h:3537
void RemoveAt(int index)
Remove an object at specified position.
Definition: fx_basic.h:1831
int GetSize() const
Get number of elements in the array.
Definition: fx_basic.h:2124
int GetCurBytePos()
Get current byte position.
Definition: fx_basic.h:3474
CFX_PtrList(int nBlockSize=10, IFX_Allocator *pAllocator=0)
Construct with block size and allocator.
void Clear()
Clear the decoding status and set the output wide text buffer to be empty.
virtual ~CFX_DataFilter()
The destructor. Destroy this filter and all its chain.
void ByteAlign()
Get to byte boundary. If current bit position is not multiplication of 8, the rest of the current byt...
void SetUnitSize(int unit_size, int segment_units, int index_size=8)
Change the unit size and the segment units. This can only be called when array is empty.
void FilterIn(FX_LPCBYTE src_buf, size_t src_size, CFX_BinaryBuf &dest_buf)
Input a data block to the filter (and its filter chain), and receive the final output.
void ClearAll()
Release all remaining data.
int GetSize() const
Get the number of elements in the array.
Definition: fx_basic.h:1351
FX_BOOL Flush()
Flush internal buffer.
FX_BOOL EstimateSize(FX_STRSIZE size, FX_STRSIZE alloc_step=0)
Change the allocated buffer size, and set the allocation step if alloc_step is non-zero.
FX_POSITION GetNextPosition(FX_POSITION pos) const
Get the next position.
Definition: fx_basic.h:3078
Definition: fx_basic.h:765
FX_LPVOID GetPrivateData(FX_LPVOID module_id)
Get previously stored private data. Returns NULL for not stored.
FX_INT32 Copy(const CFX_ObjectArray &src, FX_INT32 nStart=0, FX_INT32 nCount=-1)
Copy from an array.
Definition: fx_basic.h:1768
Definition: fx_basic.h:2175
CFX_UTF8Encoder(IFX_Allocator *pAllocator=0)
A constructor. Set the encoder to initial.
Definition: fx_basic.h:1082
void SetStream(IFX_FileStream *pStream)
Set the attached stream.
Definition: fx_basic.h:630
void operator=(FX_LPCWSTR lpsz)
Assignment(=) operator overload. From a zero terminated wide character string.
CFX_TempBuf(int size, IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:2299
#define FX_MIN(a, b)
A macro that returns the minimum of a and b.
Definition: fx_system.h:801
FX_BOOL Abort() const
Indicate whether to abort the filter process.
Definition: fx_basic.h:3823
FX_BOOL AttachFile(IFX_StreamWrite *pFile, FX_BOOL bTakeover=false)
Attach file.
void GetResult(CFX_ByteStringL &result) const
Get the result.
Definition: fx_basic.h:1116
CFX_CMapDWordToDWord(IFX_Allocator *pAllocator=0)
Constructor with allocator.
Definition: fx_basic.h:2622
int GetUnitSize() const
Get number of bytes for each element.
Definition: fx_basic.h:2138
Definition: fx_basic.h:1926
WIDE STRING CLASS.
Definition: fx_string.h:1452
FX_BOOL AppendFill(FX_BYTE byte, FX_STRSIZE count)
Append a byte for specified number times. Not a byte-by-byte processing, but a byte filling processin...
CFX_ListArrayTemplate< CFX_SortListArray< sizeof(FX_INT64)>, FX_INT64 > CFX_FileSizeListArray
Type definition for file size list array.
Definition: fx_basic.h:4144
CFX_UTF8Decoder(IFX_Allocator *pAllocator=0)
A constructor. Set the decoder to initial.
Definition: fx_basic.h:1012
CFX_CountRef< ObjClass > Ref
Type definition: it is used short for CFX_CountRef<ObjClass>.
Definition: fx_basic.h:3493
CFX_ObjectArray(IFX_Allocator *pAllocator=0)
The constructor.
Definition: fx_basic.h:1644
Stream writing interface.
Definition: fx_stream.h:422
CFX_Stack()
Construct.
Definition: fx_basic.h:1864
virtual FX_DWORD AddRef()=0
Increments reference count.
CFX_MapByteStringToPtr(int nBlockSize=10, IFX_Allocator *pAllocator=0)
Construct with specified block size.
void * FX_POSITION
A value used to denote the position of an element in a collection.
Definition: fx_system.h:636
CFX_PrivateData(IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:3270
virtual FX_DWORD Release()=0
Decrements reference count and release the current object.
int GetSegmentSize() const
Get number of elements in each segment.
Definition: fx_basic.h:2131
void Input(FX_WCHAR unicode)
Input a unicode.
FX_INTPTR GetLength() const
Get the length of saved data.
Definition: fx_basic.h:614
Memory allocation error.
Definition: fx_basic.h:1301
FX_LPCBYTE GetBuffer() const
Get the constant byte pointer to the saved data.
Definition: fx_basic.h:621
FX_BOOL Read(void *pBuf, FX_DWORD dwSize)
De-serialize a memory block.
virtual FX_BOOL NeedToPauseNow()=0
Check whether callers need to pause now.
void InitHashTable(FX_DWORD hashSize, FX_BOOL bAllocNow=true)
Initialize the hash table.
T & operator*(void)
Get the object reference operator.
Definition: fx_basic.h:3912
ObjectClass & operator[](int index) const
Subscript([]) operator overload. This function returns a reference to the specified object specified ...
Definition: fx_basic.h:1809
FX_BOOL Copy(const CFX_ArrayTemplate &src)
Copy from an array.
Definition: fx_basic.h:1489
FX_BOOL SetSize(int nNewSize, int nGrowBy=-1)
Change the allocated size and the grow amount.
Definition: fx_basic.h:1368
FX_LPCBYTE GetPtr() const
Get a constant byte string pointer to the byte string.
Definition: fx_string.h:215
void Clear()
Set the binary buffer to be empty.
void SetPrivateObj(FX_LPVOID module_id, CFX_DestructObject *pObj)
Set private object.
Definition: fx_basic.h:336
FX_DWORD HashKey(FX_BSTR key) const
Routine used to user-provided hash keys.
IFX_Allocator * m_pAllocator
Special allocator pointer. NULL means to use default allocator.
Definition: fx_basic.h:229
int m_RefCount
The reference count.
Definition: fx_basic.h:3512
Definition: fx_basic.h:3887
CFX_FileBufferArchive(FX_STRSIZE size=32768, IFX_Allocator *pAllocator=0)
A constructor with size and allocator.
Header file for Strings, variable-length sequence of characters. There are two strings here,...
void * value
Value data.
Definition: fx_basic.h:2342
CFX_MapPtrToPtr(int nBlockSize=10, IFX_Allocator *pAllocator=0)
Construct with specified block size.
FX_INT64 GetSrcPos() const
Get current position in the source stream (byte offset from the beginning of all input data).
Definition: fx_basic.h:3781
FX_BOOL Append(const CFX_ArrayTemplate &src)
Append an array.
Definition: fx_basic.h:1480
FX_BOOL RemoveKey(KeyType key)
Remove existing (key, ?) pair.
Definition: fx_basic.h:2591
int FX_INT32
32-bit signed integer.
Definition: fx_system.h:661
FX_BOOL Lookup(KeyType key, ValueType &rValue) const
Lookup by a key.
Definition: fx_basic.h:2556
void * FXSYS_memset32(void *dst, FX_INT32 v, size_t size)
Set buffer data to specified value.
CFX_CountRef()
Construct a null reference.
Definition: fx_basic.h:3518
int FX_STRSIZE
String size is limited to 2^31-1.
Definition: fx_string.h:35
void RemoveAll()
Clean up the array.
Definition: fx_basic.h:1378
FX_POSITION GetHeadPosition() const
Get the header position.
Definition: fx_basic.h:3038
FX_POSITION GetStartPosition() const
Get the first key-value pair position. iterating all (key, value) pairs.
FX_BOOL Add(TYPE newElement)
Add an element at the tail. Potentially growing the array.
Definition: fx_basic.h:1463
CFX_ArrayTemplate< FX_INT32 > CFX_Int32Array
Type definition for INT32 array.
Definition: fx_basic.h:1623
Definition: fx_basic.h:2902
Definition: fx_basic.h:251
FX_BOOL IsEOF()
Check whether de-serializing is to the end of the loading buffer.
CFX_ByteTextBuf(IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:260
T * operator->(void)
Get the object pointer operator.
Definition: fx_basic.h:3919
Association in CFX_MapPtrToPtr.
Definition: fx_basic.h:2335
int GetCount() const
Get the number of elements.
Definition: fx_basic.h:2722
~CFX_PrivateData()
The destructor.
~CFX_BinaryBuf()
The destructor.
void * Iterate(FX_BOOL(*callback)(void *param, void *pData), void *param) const
Iterate all units, with a callback function for each unit.
int FX_BOOL
Boolean variable (should be TRUE or FALSE).
Definition: fx_system.h:669
ErrorType
Enumeration for error type.
Definition: fx_basic.h:1296
void RemoveAll()
Remove all (key, value) pair.
Definition: fx_basic.h:2677
virtual void Clear()
Clear the text buffer.
~CFX_TempBuf()
The Destructor.
Definition: fx_basic.h:2307
Definition: fx_basic.h:3929
void SetDestFilter(CFX_DataFilter *pFilter)
Set destination filter. Note the filter will be appended to the end of current filter chain.
Definition: fx_basic.h:4087
void ByteAlign()
Get to byte boundary. If current bit position is not multiplication of 8, the rest of the current byt...
CFX_ArchiveSaver & operator<<(FX_BYTE i)
Left shifts(<<) operator overload. Serialize a single byte.
char const * FX_LPCSTR
Pointer to constant 8-bit Windows (ANSI) characters.
Definition: fx_system.h:683
void AppendChar(FX_DWORD ch)
Append characters to wide text buffer.
Definition: fx_basic.h:3009
FX_INT32 Append(const CFX_ObjectArray &src, FX_INT32 nStart=0, FX_INT32 nCount=-1)
Append an array.
Definition: fx_basic.h:1733
FX_INT32 count
The data count.
Definition: fx_basic.h:3937
T * Get(void)
Get the object pointer.
Definition: fx_basic.h:3905
CFX_WideString FX_DecodeURI(const CFX_ByteString &bsURI)
A simple URI Decode.
CFX_WideString(* m_GetWideString)(CFX_CharMap *pMap, const CFX_ByteString &bstr)
A pointer type to GetWideString function.
Definition: fx_basic.h:973
The data list.
Definition: fx_basic.h:3933
void GetNextAssoc(FX_POSITION &rNextPosition, KeyType &rKey, ValueType &rValue) const
Get the current association and set the position to next association.
Definition: fx_basic.h:2602
FX_BOOL IsExhaustBuffer() const
Indicate whether this filter exhausts the input buffer.
Definition: fx_basic.h:3809
FX_LPBYTE GetAt(FX_INT32 nIndex)
Get the data.
Definition: fx_basic.h:4022
File stream interface, reading & writing.
Definition: fx_stream.h:649
FX_BOOL SetAtGrow(int nIndex, TYPE newElement)
Set an element value at specified position. Potentially growing the array.
Definition: fx_basic.h:1447
Found.
Definition: fx_basic.h:4159
void AppendStr(FX_BSTR str)
Append a non-buffered byte string.
Definition: fx_basic.h:1100
CFX_ObjectStack()
Construct.
Definition: fx_basic.h:1930
FX_INT32 AppendBlock(const void *pBuf, size_t size)
Append a binary buffer block.
void GetResult(CFX_WideStringL &result) const
Get the result.
Definition: fx_basic.h:1060
CFX_ArrayTemplate< FX_INT64 > CFX_FileSizeArray
Type definition for file size array type.
Definition: fx_basic.h:1619
UINT_PTR FX_UINTPTR
Unsigned integral type for pointer precision.
Definition: fx_system.h:728
TYPE * InsertSpaceAt(int nIndex, int nCount)
Insert a number of elements.
Definition: fx_basic.h:1515
void RemoveAt(FX_POSITION pos)
Remove a node at specified position.
FX_BOOL RemoveKey(FX_BSTR key)
Remove existing key.
int RefCount() const
Get the reference count.
Definition: fx_basic.h:3700
FX_BOOL RemoveAt(int nIndex, int nCount=1)
Remove a number of elements at specified position.
Definition: fx_basic.h:1582
Definition: fx_basic.h:3737
void Rewind()
Rewind a bit-stream. Simply set the current bit position to be zero.
Definition: fx_basic.h:3428
FX_DWORD GetHashTableSize() const
Get the internal hash table size. Advanced features for derived classes.
Definition: fx_basic.h:2808
CFX_ObjectArray< CFX_WideString > CFX_WideStringArray
Type definition for a CFX_WideString array type.
Definition: fx_basic.h:1854
void *& operator[](void *key)
Subscript([]) operator overload. Lookup and add if not there.
void AttachData(void *pBuf, FX_STRSIZE size)
Attach to a buffer (this buffer will belong to this object). The buffer must be allocated by FX_Alloc...
void operator=(const Ref &ref)
Assignment(=) operator overload. Assign from another reference.
Definition: fx_basic.h:3574
void * GetNext(FX_POSITION &rPosition) const
Get the the current value and set the position to next node.
Definition: fx_basic.h:3054
FX_DWORD nHashValue
Cached hash value, needed for efficient iteration.
Definition: fx_basic.h:2700
void DetachBuffer()
Detach the buffer. Just set buffer pointer to NULL, and set the binary buffer size to zero.
void * GetPrev(FX_POSITION &rPosition) const
Get the the current value and set the position to previous node.
Definition: fx_basic.h:3066
CFX_ArrayTemplate(const CFX_ArrayTemplate &other, IFX_Allocator *pAllocator=0)
The copy constructor.
Definition: fx_basic.h:1321
void * AddSpace()
Add an empty space to the array.
Definition: fx_basic.h:1718
TYPE & Top()
Get the top byte string.
Definition: fx_basic.h:1957
FX_POSITION AddTail(void *newElement)
Add a value to the tail.
void Write(const void *pData, FX_STRSIZE dwSize)
Serialize a memory block.
CFX_SmartPointer(T *pObj)
The constructor.
Definition: fx_basic.h:3895
Definition: fx_basic.h:3489
void ResetStatistics()
Reset statistics.
Definition: fx_basic.h:1288
T2 & operator[](FX_INT32 nIndex)
Subscript([]) operator overload.
Definition: fx_basic.h:4120
const TYPE GetAt(int nIndex) const
This method retrieves an element specified by an index number.
Definition: fx_basic.h:1387
ObjectClass & Add()
Add an empty object to the array.
Definition: fx_basic.h:1702
CFX_ArrayTemplate(IFX_Allocator *pAllocator=0)
Constructor, from an allocator.
Definition: fx_basic.h:1312
unsigned char * FX_LPBYTE
Pointer to a FX_BYTE.
Definition: fx_system.h:645
FX_BOOL AppendByte(FX_BYTE byte)
Append a single byte.
Definition: fx_basic.h:128
FX_POSITION Find(void *searchValue, FX_POSITION startAfter=0) const
Find a value starting after specified position.
CFX_ByteString FX_EncodeURI(const CFX_WideString &wsURI)
A simple URI encode.
void Append(FX_INT32 nStart, FX_INT32 nCount)
Append a list data.
Definition: fx_basic.h:3985
void EstimateSize(FX_DWORD size, FX_DWORD grow_by)
Change internal allocation size and grow amount.
CountedObj(const CountedObj &src)
The copy constructor.
Definition: fx_basic.h:3509
FX_BOOL Lookup(FX_DWORD key, FX_DWORD &value) const
Lookup by a key.
FX_BOOL AppendBlock(const void *pBuf, FX_STRSIZE size)
Append a binary buffer block.
const TYPE * GetData() const
Direct Access to the element data (may return NULL).
Definition: fx_basic.h:1430
CFX_ArrayTemplate & operator=(const CFX_ArrayTemplate &src)
Assignment operator overload.
Definition: fx_basic.h:1524
void FreeData()
Free the private data pointed by m_pData.
const TYPE operator[](int nIndex) const
Subscript([]) operator overload. It retrieves a element specified by the zero-based index in nIndex.
Definition: fx_basic.h:1533
CFX_ArrayTemplate< FX_BYTE > CFX_ByteArray
Type definition for a byte array type.
Definition: fx_basic.h:1611
Foxit allocator interface.
Definition: fx_memory.h:960
void AppendChar(int ch)
Append a single character or byte.
Definition: fx_basic.h:278
void SkipBits(FX_DWORD nBits)
Skip a number of bits.
Definition: fx_basic.h:3421
CFX_SegmentedArray(int segment_units, int index_size=8, IFX_Allocator *pAllocator=0)
Construct with specified segment units.
Definition: fx_basic.h:2185
CNode * pPrev
Pointer to previous node.
Definition: fx_basic.h:3018
void Pop()
Pop the byte string from stack.
Definition: fx_basic.h:2033
Definition: fx_basic.h:947
void RemoveAll()
Remove all key-value pairs in the map.
Invalid array size.
Definition: fx_basic.h:1298
FX_STRSIZE GetLength() const
Get the length of the wide text buffer.
Definition: fx_basic.h:433
CFX_ListArrayTemplate< CFX_SortListArray< sizeof(FX_DWORD)>, FX_DWORD > CFX_DWordListArray
Type definition for FX_DWORD list array.
Definition: fx_basic.h:4146
void Add(ElementType data)
Add an element.
Definition: fx_basic.h:2197
float FX_FLOAT
32-bit floating-point number.
Definition: fx_system.h:663
FX_BOOL IsEmpty() const
Verify whether the map is empty.
Definition: fx_basic.h:2729
FX_POSITION FindIndex(int index) const
Find a value by index number.
CFX_CountRef(const Ref &ref)
Copy constructor from another reference.
Definition: fx_basic.h:3528
#define FXSYS_assert
Assertion.
Definition: fx_system.h:779
TYPE * AddSpace()
Add an element's space.
Definition: fx_basic.h:1505
CFX_ArchiveLoader & operator>>(FX_BYTE &i)
Right shifts(>>) operator overload. De-serialize a byte.
CAssoc * pNext
Pointer to next association.
Definition: fx_basic.h:2697
TYPE * GetDataPtr(int index)
Get a pointer to the specified element in the array. Direct pointer access.
Definition: fx_basic.h:1498
FX_INT32 AppendByte(FX_BYTE byte)
Append a single byte.
int GetCount() const
Get the number of elements.
Definition: fx_basic.h:2366
void SetAt(FX_POSITION pos, void *newElement)
Change the value at specified position.
Definition: fx_basic.h:3134
FX_POSITION AddHead(void *newElement)
Add a value to the head.
CFX_ArchiveSaver(IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:485
virtual void Clear()
Clear buffer.
void WriteBits(FX_INT64 value, FX_INT32 nBits)
Write a value of bits.
void Delete(int start_index, int count)
Delete a inter-zone buffer defining by parameters start_index and count in the wide text buffer.
Definition: fx_basic.h:450
FX_BOOL SetAt(int nIndex, TYPE newElement)
This method overwrites an element specified by an index number.
Definition: fx_basic.h:1403
int GetSize() const
Get the size of the array.
Definition: fx_basic.h:1799
CFX_ByteString & Top()
Get the top byte string.
Definition: fx_basic.h:2023
FX_BOOL InsertBlock(FX_STRSIZE pos, const void *pBuf, FX_STRSIZE size)
Insert a binary buffer block at the specified position.
void * GetAt(FX_POSITION rPosition) const
Get an value at specified position.
Definition: fx_basic.h:3096
FX_POSITION GetTailPosition() const
Get the tail position.
Definition: fx_basic.h:3045
FX_BOOL Empty() const
Empty the container.
Definition: fx_basic.h:1871
~CFX_AutoRestorer()
The destructor.
Definition: fx_basic.h:3879
~CFX_BaseSegmentedArray()
The destructor.
CFX_MapPtrTemplate(IFX_Allocator *pAllocator=0)
Default constructor.
Definition: fx_basic.h:2546
Definition: fx_basic.h:1002
FX_STRSIZE GetLength() const
Get the length of the byte text buffer.
Definition: fx_basic.h:330
Definition: fx_basic.h:2538
void AppendString(FX_BSTR str)
Append a non-buffered byte string.
Definition: fx_basic.h:119
FX_BOOL Empty() const
Empty the container.
Definition: fx_basic.h:2003
Definition: fx_basic.h:3234
Definition: fx_basic.h:2289
FX_LPVOID GetNextValue(FX_POSITION &rNextPosition) const
Get the the current value and set the position to next association.
Definition: fx_basic.h:642
void GetNextAssoc(FX_POSITION &rNextPosition, CFX_ByteString &rKey, void *&rValue) const
Get the current association and set the position to next association.
CFX_SortListArray(IFX_Allocator *pAllocator=0)
The constructor.
Definition: fx_basic.h:3952
CFX_BinaryBuf m_Buffer
Definition: fx_basic.h:2681
Failed.
Definition: fx_basic.h:4163
void * key
Key data.
Definition: fx_basic.h:2340
FX_LPWSTR GetBuffer() const
Get a wide character pointer.
Definition: fx_basic.h:440
~CFX_FixedBufGrow()
The Destructor.
Definition: fx_basic.h:2274
Done.
Definition: fx_basic.h:4165
void FX_Error(ErrorType error, FX_INT32 badIndex=0) const
The function is called when raise a fatal error.Print error info an exit(1).
Definition: fx_basic.h:1332
CFX_FixedBufGrow(int data_size, IFX_Allocator *pAllocator=0)
Construct with allocator.
Definition: fx_basic.h:2242
CONSTANT BYTE STRING CLASS.
Definition: fx_string.h:51
TYPE * GetData()
Direct Access to the element data (may return NULL).
Definition: fx_basic.h:1437
Definition: fx_basic.h:1636
CFX_ObjectArray< CFX_ByteString > CFX_ByteStringArray
Type definition for a CFX_ByteString array type.
Definition: fx_basic.h:1852
FX_BOOL LookupPrivateData(FX_LPVOID module_id, FX_LPVOID &pData) const
Lookup a private data.
Definition: fx_basic.h:3334
~CFX_SmartPointer()
The destructor.
Definition: fx_basic.h:3898
ObjClass * New()
Create a new object and refer to it. The returned pointer to the object can be used to modify the con...
Definition: fx_basic.h:3553
Define a class here derived from user data class, with an additional reference count member.
Definition: fx_basic.h:3498
CFX_ArrayTemplate< FX_FLOAT > CFX_FloatArray
Type definition for float array.
Definition: fx_basic.h:1621
void ClearStatus()
Clear the decoding status.
Definition: fx_basic.h:1044
~CFX_SortListArray()
The destructor.
Definition: fx_basic.h:3955
IFX_BufferArchive(FX_STRSIZE size, IFX_Allocator *pAllocator=0)
Construct with buffer size and special allocator.
FX_DWORD GetHashTableSize() const
Get the internal hash table size. Advanced features for derived classes.
Definition: fx_basic.h:2455
void *& operator[](FX_BSTR key)
Subscript([]) operator overload. Lookup and add if not there.
FX_BOOL NotNull() const
Check if the pointer of the object is not NULL.
Definition: fx_basic.h:3639
TYPE & Top()
Get the top byte data.
Definition: fx_basic.h:1891
FX_BOOL RemoveKey(void *key)
Removing existing (key, ?) pair.
FX_INT32 AppendDWord(FX_DWORD i)
Append a FX_DWORD value.
FX_BOOL Lookup(FX_BSTR key, void *&rValue) const
Lookup by a key.
void SetAt(FX_BSTR key, void *value)
Add a new (key, value) pair. Add if not exist, otherwise modify.
Definition: fx_basic.h:2219
CFX_BitWriter(CFX_BinaryBuf *pBinBuf)
A constructor with bits write.
Definition: fx_basic.h:3450
FX_BOOL InsertAt(int nStartIndex, const CFX_BasicArray *pNewArray)
Inset an array at specified position.
Definition: fx_basic.h:1592
~CFX_FileBufferArchive()
The destructor.
void Clear()
Clear data.
Definition: fx_basic.h:4095
void Delete(int start_index, int count)
Delete a inter-zone buffer defining by parameters start_index and count in the binary buffer.
To be continued.
Definition: fx_basic.h:4157
CFX_WideString FX_UrlDecode(const CFX_ByteString &bsUrl)
A simple URL decode.
FX_DWORD GetBits(FX_DWORD nBits)
Get specified number of bits (maximum 32 bits).
ValueType & operator[](KeyType key)
Subscript([]) operator overload. Lookup and add if not there.
Definition: fx_basic.h:2572
BYTE STRING CLASS.
Definition: fx_string.h:317
FX_BOOL Lookup(FX_BSTR key, void *&rValue) const
Lookup by a key.
void SetPrivateData(FX_LPVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback)
Set private data.
void operator=(FX_BSTR str)
Assignment(=) operator overload. From a non-buffered byte string.
CFX_CMapByteStringToPtr(IFX_Allocator *pAllocator=0)
The constructor.
virtual ~IFX_BufferArchive()
The destructor.
Definition: fx_basic.h:781
Definition: fx_basic.h:1167
FX_BOOL CopyData(const void *pBuf, FX_STRSIZE size)
Copy from another buffer.
CFX_AutoRestorer(T *location)
The constructor.
Definition: fx_basic.h:3873
unsigned char const * FX_LPCBYTE
Pointer to a constant FX_BYTE.
Definition: fx_system.h:647
FX_LPBYTE GetBuffer() const
Get a byte pointer to the binary buffer.
Definition: fx_basic.h:196
Header file for Memory management related definitions and classes.
void SetDataSize(int data_size)
Construct with allocator.
Definition: fx_basic.h:2260
FX_BOOL Lookup(void *key, void *&rValue) const
Lookup by a key.
FX_ProgressiveStatus
Enumeration for progressive status.
Definition: fx_basic.h:4153
void Pop()
Pop the data from stack.
Definition: fx_basic.h:1901
wchar_t * FX_LPWSTR
Pointer to Unicode characters.
Definition: fx_system.h:710
FX_BOOL NeedNewSrc()
Indicate whether this filter needs to input new src data.
FX_BOOL InsertAt(int nIndex, TYPE newElement, int nCount=1)
Inset one or more continuous element at specified position.
Definition: fx_basic.h:1566
Index out of range.
Definition: fx_basic.h:1304
IFX_Allocator * m_pAllocator
Special allocator pointer. NULL means to use default allocator.
Definition: fx_basic.h:2151
FX_BOOL IsEOF() const
Detect EOF.
Definition: fx_basic.h:3774
void Push(const TYPE &val)
Push the byte string to stack.
Definition: fx_basic.h:1979
~CFX_CMapByteStringToPtr()
The destructor.
void TakeOver(CFX_BinaryBuf &other)
Takeover another buffer.
#define NULL
The null-pointer value.
Definition: fx_system.h:767
void * GetValueAt(void *key) const
Get a value pointer by a key.
FX_INT32 AppendInt64(FX_INT64 i)
Append a FX_INT64 value.
int GetUpperBound() const
Get the upper bound in the array, actually the maximum valid index.
Definition: fx_basic.h:1358
int Size() const
Get size of the container.
Definition: fx_basic.h:1947
void RemoveKey(FX_BSTR key)
Removing existing (key, ?) pair.
Definition: fx_basic.h:2614
Definition: fx_basic.h:2329
Definition: fx_basic.h:3442
FX_BOOL IsEOF() const
Check if reached end of the stream.
Definition: fx_basic.h:3412
CFX_ByteString FX_UrlEncode(const CFX_WideString &wsUrl)
A simple URL encode.
void Push(const TYPE &val)
Push the data to stack.
Definition: fx_basic.h:1913
#define FX_FILESIZE
Support large file directly.
Definition: fx_stream.h:138
FX_POSITION GetStartPosition() const
Get the first key-value pair position. iterating all (key, value) pairs.
Definition: fx_basic.h:2434
Definition: fx_basic.h:2688
void Clear()
Clear the data list.
Definition: fx_basic.h:3965
CountedObj()
The constructor.
Definition: fx_basic.h:3502
void RemoveAll()
Remove all objects in the array.
Definition: fx_basic.h:1843
int GetCount() const
Get the number of nodes.
Definition: fx_basic.h:3106
FX_BOOL AbortAll()
Indicate whether to abort the filter process, including all dest filter.
ObjClass * GetModify()
Get a modifiable copy of the object.
Definition: fx_basic.h:3652
void GetNextAssoc(FX_POSITION &pos, FX_DWORD &key, FX_DWORD &value) const
Get the next association.
void RemoveAll()
Remove all the (key, value) pairs in the map.
int Size() const
Get size of the container.
Definition: fx_basic.h:1881
#define FX_Allocator_Free(fxAllocator, ptr)
Free memory block on an allocator.
Definition: fx_memory.h:1057
FX_POSITION GetPrevPosition(FX_POSITION pos) const
Get the previous position.
Definition: fx_basic.h:3087
CFX_WideStringC GetWideString() const
Get a wide string from the wide text buffer.
~CFX_MapPtrToPtr()
The Destructor.
CFX_ArchiveLoader(FX_LPCBYTE pData, FX_DWORD dwSize)
Construct a loading archive.
PD_CALLBACK_FREEDATA m_pCallback
Pointer of a callback function provided by custom module for deallocating private data.
Definition: fx_basic.h:3250
FX_STRSIZE GetSize() const
Get the length of the binary buffer.
Definition: fx_basic.h:203
CFX_ByteString(* m_GetByteString)(CFX_CharMap *pMap, const CFX_WideString &wstr)
A pointer type to GetByteString function.
Definition: fx_basic.h:986
Definition: fx_basic.h:3378
void SetNull()
Set the pointer of the object to be null.
Definition: fx_basic.h:3674
Definition: fx_basic.h:3866
CFX_ArrayTemplate< FX_WCHAR > CFX_WCHARArray
Type definition for FX_WHAR array.
Definition: fx_basic.h:1625
FX_INT32 AppendString(FX_BSTR lpsz)
Append a byte string value.
void InitHashTable(FX_DWORD hashSize, FX_BOOL bAllocNow=true)
Initialize the hash table.
FX_BOOL operator==(const Ref &ref) const
Comparison(==) operator overload. Compare with another reference.
Definition: fx_basic.h:3690
ObjectClass * GetDataPtr(int index) const
Get a pointer to the specified element in the array. Direct pointer access.
Definition: fx_basic.h:1822
void * value
Value data.
Definition: fx_basic.h:2704
INT_PTR FX_INTPTR
Signed integral type for pointer precision.
Definition: fx_system.h:726
Header file for exception class.
unsigned char FX_BYTE
Byte (8 bits).
Definition: fx_system.h:643
void * GetAt(int index) const
Get a typeless pointer to an element data.
void RemoveAll()
Remove all elements in the array.
void Pop()
Pop the byte string from stack.
Definition: fx_basic.h:1967
Definition: fx_basic.h:868
void Decref()
Decrease the reference.
Definition: fx_basic.h:3721
virtual ~IFX_Pause()
Destructor.
Definition: fx_basic.h:3741
CFX_ArrayTemplate< void * > CFX_PtrArray
Type definition for: a typeless pointer array type.
Definition: fx_basic.h:1617
Definition: fx_basic.h:476
CFX_BaseSegmentedArray(int unit_size=1, int segment_units=512, int index_size=8, IFX_Allocator *pAllocator=0)
Construct with specified unit size, segment units, and number of index levels.
int Find(const TYPE &data, int iStart=0) const
Find an element from specified position to last.
Definition: fx_basic.h:1601
void Input(FX_BYTE byte)
Input a byte.
Header file for system related definitions.
FX_LPVOID GetNextValue(FX_POSITION &rNextPosition) const
Get the the current value and set the position to next association.
CFX_ByteStringC GetByteString() const
Get a byte string from the buffer.
void Add(FX_INT32 nStart, FX_INT32 nCount)
Add a list data.
Definition: fx_basic.h:4108
CAssoc * pNext
Pointer to next association.
Definition: fx_basic.h:2338