Searched defs:pAllocator (Results 1 - 18 of 18) sorted by relevance

/external/pdfium/core/src/fxcrt/
H A Dfx_basic_plex.cpp9 CFX_Plex* CFX_Plex::Create(IFX_Allocator* pAllocator, CFX_Plex*& pHead, FX_DWORD nMax, FX_DWORD cbElement) argument
11 CFX_Plex* p = (CFX_Plex*)FX_Allocator_Alloc(pAllocator, FX_BYTE, sizeof(CFX_Plex) + nMax * cbElement);
19 void CFX_Plex::FreeDataChain(IFX_Allocator* pAllocator) argument
25 FX_Allocator_Free(pAllocator, bytes);
H A Dfx_xml_composer.cpp30 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
31 m_QSpaceName.Set(qSpace, pAllocator);
32 m_TagName.Set(tagname, pAllocator);
37 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
40 m_QSpaceName.Set(bsSpace, pAllocator);
41 m_TagName.Set(bsName, pAllocator);
H A Dfx_basic_utf.cpp91 void FX_UTF8Encode(FX_LPCWSTR pwsStr, FX_STRSIZE len, CFX_ByteStringL &utf8Str, IFX_Allocator* pAllocator) argument
97 CFX_UTF8Encoder encoder(pAllocator);
H A Dfx_basic_list.cpp9 CFX_PtrList::CFX_PtrList(int nBlockSize, IFX_Allocator* pAllocator) argument
10 : m_pAllocator(pAllocator)
H A Dfxcrt_platforms.cpp10 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator) argument
12 if (pAllocator) {
13 return FX_NewAtAllocator(pAllocator) CFXCRT_FileAccess_CRT;
74 void CFXCRT_FileAccess_CRT::Release(IFX_Allocator* pAllocator) argument
76 if (pAllocator) {
77 FX_DeleteAtAllocator(this, pAllocator, CFXCRT_FileAccess_CRT);
H A Dfxcrt_posix.cpp10 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator) argument
12 if (pAllocator) {
13 return FX_NewAtAllocator(pAllocator) CFXCRT_FileAccess_Posix();
62 void CFXCRT_FileAccess_Posix::Release(IFX_Allocator* pAllocator) argument
64 if (pAllocator) {
65 FX_DeleteAtAllocator(this, pAllocator, CFXCRT_FileAccess_Posix);
H A Dfxcrt_windows.cpp26 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator) argument
28 if (pAllocator) {
29 return FX_NewAtAllocator(pAllocator) CFXCRT_FileAccess_Win64;
95 void CFXCRT_FileAccess_Win64::Release(IFX_Allocator* pAllocator) argument
97 if (pAllocator) {
98 FX_DeleteAtAllocator(this, pAllocator, CFXCRT_FileAccess_Win64);
H A Dfx_basic_array.cpp8 CFX_BasicArray::CFX_BasicArray(int unit_size, IFX_Allocator* pAllocator) argument
9 : m_pAllocator(pAllocator)
147 CFX_BaseSegmentedArray::CFX_BaseSegmentedArray(int unit_size, int segment_units, int index_size, IFX_Allocator* pAllocator) argument
148 : m_pAllocator(pAllocator)
H A Dfx_basic_memmgr.cpp28 static void* _DefAllocDebug(IFX_Allocator* pAllocator, size_t size, FX_LPCSTR filename, int line) argument
30 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->AllocDebug(size, 0, filename, line);
32 static void* _DefAlloc(IFX_Allocator* pAllocator, size_t size) argument
34 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->Alloc(size, 0);
36 static void* _DefReallocDebug(IFX_Allocator* pAllocator, void* p, size_t size, FX_LPCSTR filename, int line) argument
38 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->ReallocDebug(p, size, 0, filename, line);
40 static void* _DefRealloc(IFX_Allocator* pAllocator, void* p, size_t size) argument
42 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->Realloc(p, size, 0);
44 static void _DefFree(IFX_Allocator* pAllocator, void* p) argument
46 ((FX_DefAllocator*)pAllocator)
194 operator new(size_t size, IFX_Allocator* pAllocator, FX_LPCSTR filename, int line) argument
201 operator delete(void* p, IFX_Allocator* pAllocator, FX_LPCSTR filename, int line) argument
209 operator new(size_t size, IFX_Allocator* pAllocator) argument
223 operator delete(void* p, IFX_Allocator* pAllocator) argument
232 _GOPAllocDebug(IFX_Allocator* pAllocator, size_t size, FX_LPCSTR file, int line) argument
236 _GOPAlloc(IFX_Allocator* pAllocator, size_t size) argument
240 _GOPReallocDebug(IFX_Allocator* pAllocator, void* p, size_t new_size, FX_LPCSTR file, int line) argument
244 _GOPRealloc(IFX_Allocator* pAllocator, void* p, size_t new_size) argument
248 _GOPFree(IFX_Allocator* pAllocator, void* p) argument
252 CFX_GrowOnlyPool(IFX_Allocator* pAllocator, size_t trunk_size) argument
267 SetAllocator(IFX_Allocator* pAllocator) argument
[all...]
H A Dextension.h16 virtual void Release(IFX_Allocator* pAllocator = NULL) = 0;
27 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator = NULL);
31 CFX_CRTFileStream(IFXCRT_FileAccess* pFA, IFX_Allocator* pAllocator) : m_pAllocator(pAllocator), m_pFile(pFA), m_dwCount(1), m_bUseRange(FALSE), m_nOffset(0), m_nSize(0) {} argument
128 CFX_MemoryStream(FX_BOOL bConsecutive, IFX_Allocator* pAllocator) argument
129 : m_Blocks(pAllocator)
139 CFX_MemoryStream(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver, IFX_Allocator* pAllocator) argument
140 : m_Blocks(pAllocator)
153 IFX_Allocator* pAllocator = m_Blocks.m_pAllocator; local
156 FX_Allocator_Free(pAllocator, (FX_LPBYT
172 IFX_Allocator* pAllocator = m_Blocks.m_pAllocator; local
268 IFX_Allocator* pAllocator = m_Blocks.m_pAllocator; local
376 IFX_Allocator* pAllocator = m_Blocks.m_pAllocator; local
[all...]
H A Dfx_basic_buffer.cpp9 CFX_BinaryBuf::CFX_BinaryBuf(IFX_Allocator* pAllocator) argument
10 : m_pAllocator(pAllocator)
17 CFX_BinaryBuf::CFX_BinaryBuf(FX_STRSIZE size, IFX_Allocator* pAllocator) argument
18 : m_pAllocator(pAllocator)
442 IFX_BufferArchive::IFX_BufferArchive(FX_STRSIZE size, IFX_Allocator* pAllocator) argument
443 : m_pAllocator(pAllocator)
504 CFX_FileBufferArchive::CFX_FileBufferArchive(FX_STRSIZE size, IFX_Allocator* pAllocator) argument
505 : IFX_BufferArchive(size, pAllocator)
H A Dfx_basic_maps.cpp17 CFX_MapPtrToPtr::CFX_MapPtrToPtr(int nBlockSize, IFX_Allocator* pAllocator) argument
18 : m_pAllocator(pAllocator)
187 CFX_MapByteStringToPtr::CFX_MapByteStringToPtr(int nBlockSize, IFX_Allocator* pAllocator) argument
188 : m_pAllocator(pAllocator)
394 static void _CompactStringRelease(IFX_Allocator* pAllocator, _CompactString* pCompact) argument
397 FX_Allocator_Free(pAllocator, pCompact->m_pBuffer);
413 static void _CompactStringStore(IFX_Allocator* pAllocator, _CompactString* pCompact, FX_LPCBYTE pStr, int len) argument
423 pCompact->m_pBuffer = FX_Allocator_Alloc(pAllocator, FX_BYTE, len);
440 CFX_CMapByteStringToPtr::CFX_CMapByteStringToPtr(IFX_Allocator* pAllocator) argument
441 : m_Buffer(sizeof(_CompactString) + sizeof(void*), CMAP_ALLOC_STEP, CMAP_INDEX_SIZE, pAllocator)
450 IFX_Allocator* pAllocator = m_Buffer.m_pAllocator; local
536 IFX_Allocator* pAllocator = m_Buffer.m_pAllocator; local
560 IFX_Allocator* pAllocator = m_Buffer.m_pAllocator; local
[all...]
H A Dfx_extension.cpp14 FX_HFILE FX_File_Open(FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator) argument
16 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator);
18 pFA->Release(pAllocator);
23 FX_HFILE FX_File_Open(FX_WSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator) argument
25 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator);
27 pFA->Release(pAllocator);
32 void FX_File_Close(FX_HFILE hFile, IFX_Allocator* pAllocator) argument
36 ((IFXCRT_FileAccess*)hFile)->Release(pAllocator);
83 IFX_FileStream* FX_CreateFileStream(FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator) argument
85 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator);
99 FX_CreateFileStream(FX_LPCWSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator) argument
115 FX_CreateFileWrite(FX_LPCSTR filename, IFX_Allocator* pAllocator) argument
119 FX_CreateFileWrite(FX_LPCWSTR filename, IFX_Allocator* pAllocator) argument
123 FX_CreateFileRead(FX_LPCSTR filename, IFX_Allocator* pAllocator) argument
127 FX_CreateFileRead(FX_LPCWSTR filename, IFX_Allocator* pAllocator) argument
131 FX_CreateMemoryStream(FX_LPBYTE pBuffer, size_t dwSize, FX_BOOL bTakeOver, IFX_Allocator* pAllocator) argument
139 FX_CreateMemoryStream(FX_BOOL bConsecutive, IFX_Allocator* pAllocator) argument
[all...]
H A Dfx_xml_parser.cpp584 CXML_Element* CXML_Element::Parse(const void* pBuffer, size_t size, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator) argument
586 CXML_Parser parser(pAllocator);
592 CXML_Element* CXML_Element::Parse(IFX_FileRead *pFile, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator) argument
594 CXML_Parser parser(pAllocator);
600 CXML_Element* CXML_Element::Parse(IFX_BufferRead *pBuffer, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator) argument
602 CXML_Parser parser(pAllocator);
608 CXML_Element::CXML_Element(IFX_Allocator* pAllocator) argument
613 , m_Children(pAllocator)
616 CXML_Element::CXML_Element(FX_BSTR qSpace, FX_BSTR tagName, IFX_Allocator* pAllocator) argument
621 , m_Children(pAllocator)
626 CXML_Element(FX_BSTR qTagName, IFX_Allocator* pAllocator) argument
641 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
649 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
683 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
709 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
735 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
768 IFX_Allocator* pAllocator = m_Children.m_pAllocator; local
951 SetAt(FX_BSTR space, FX_BSTR name, FX_WSTR value, IFX_Allocator* pAllocator) argument
978 RemoveAt(FX_BSTR space, FX_BSTR name, IFX_Allocator* pAllocator) argument
1001 RemoveAll(IFX_Allocator* pAllocator) argument
[all...]
H A Dfx_basic_bstring.cpp1173 void CFX_ByteStringL::Empty(IFX_Allocator* pAllocator) argument
1176 FX_Allocator_Free(pAllocator, (FX_LPVOID)m_Ptr);
1180 FX_LPSTR CFX_ByteStringL::AllocBuffer(FX_STRSIZE length, IFX_Allocator* pAllocator) argument
1182 Empty(pAllocator);
1183 FX_LPSTR str = FX_Allocator_Alloc(pAllocator, FX_CHAR, length + 1);
1191 void CFX_ByteStringL::Set(FX_BSTR src, IFX_Allocator* pAllocator) argument
1193 Empty(pAllocator);
1195 FX_LPSTR str = FX_Allocator_Alloc(pAllocator, FX_CHAR, src.GetLength() + 1);
H A Dfx_basic_wstring.cpp1052 void CFX_WideStringL::Empty(IFX_Allocator* pAllocator) argument
1055 FX_Allocator_Free(pAllocator, (FX_LPVOID)m_Ptr);
1059 void CFX_WideStringL::Set(FX_WSTR src, IFX_Allocator* pAllocator) argument
1061 Empty(pAllocator);
1063 FX_LPWSTR str = FX_Allocator_Alloc(pAllocator, FX_WCHAR, src.GetLength() + 1);
/external/pdfium/core/include/fxcrt/
H A Dfx_memory.h120 void* (*m_AllocDebug)(struct _IFX_Allocator* pAllocator, size_t size, FX_LPCSTR file, int line);
122 void* (*m_Alloc)(struct _IFX_Allocator* pAllocator, size_t size);
124 void* (*m_ReallocDebug)(struct _IFX_Allocator* pAllocator, void* p, size_t size, FX_LPCSTR file, int line);
126 void* (*m_Realloc)(struct _IFX_Allocator* pAllocator, void* p, size_t size);
128 void (*m_Free)(struct _IFX_Allocator* pAllocator, void* p);
167 void* operator new (size_t size, IFX_Allocator* pAllocator, FX_LPCSTR file, int line);
170 void operator delete (void* p, IFX_Allocator* pAllocator, FX_LPCSTR file, int line);
173 void* operator new (size_t size, IFX_Allocator* pAllocator);
178 void operator delete (void* p, IFX_Allocator* pAllocator);
196 void* operator new[] (size_t size, IFX_Allocator* pAllocator, FX_LPCST argument
202 operator delete[](void* p, IFX_Allocator* pAllocator, FX_LPCSTR file, int line) argument
205 operator new[](size_t size, IFX_Allocator* pAllocator) argument
213 operator delete[](void* p, IFX_Allocator* pAllocator) argument
[all...]
H A Dfx_basic.h25 CFX_BinaryBuf(IFX_Allocator* pAllocator = NULL);
27 CFX_BinaryBuf(FX_STRSIZE size, IFX_Allocator* pAllocator = NULL);
94 CFX_ByteTextBuf(IFX_Allocator* pAllocator = NULL) : CFX_BinaryBuf(pAllocator) {}
122 CFX_WideTextBuf(IFX_Allocator* pAllocator = NULL) : CFX_BinaryBuf(pAllocator) {}
163 CFX_ArchiveSaver(IFX_Allocator* pAllocator = NULL) : m_SavingBuf(pAllocator), m_pStream(NULL) {}
238 IFX_BufferArchive(FX_STRSIZE size, IFX_Allocator* pAllocator = NULL);
272 CFX_FileBufferArchive(FX_STRSIZE size = 32768, IFX_Allocator* pAllocator
1508 IFX_Allocator* pAllocator = m_DataLists.m_pAllocator; local
1524 IFX_Allocator* pAllocator = m_DataLists.m_pAllocator; local
[all...]

Completed in 168 milliseconds