Home
last modified time | relevance | path

Searched refs:pAllocator (Results 1 – 25 of 26) sorted by relevance

12

/external/pdfium/core/src/fxcrt/
Dfx_basic_memmgr.cpp28 static void* _DefAllocDebug(IFX_Allocator* pAllocator, size_t size, FX_LPCSTR filename, int line) in _DefAllocDebug() argument
30 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->AllocDebug(size, 0, filename, line); in _DefAllocDebug()
32 static void* _DefAlloc(IFX_Allocator* pAllocator, size_t size) in _DefAlloc() argument
34 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->Alloc(size, 0); in _DefAlloc()
36 static void* _DefReallocDebug(IFX_Allocator* pAllocator, void* p, size_t size, FX_LPCSTR filename, … in _DefReallocDebug() argument
38 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->ReallocDebug(p, size, 0, filename, line); in _DefReallocDebug()
40 static void* _DefRealloc(IFX_Allocator* pAllocator, void* p, size_t size) in _DefRealloc() argument
42 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->Realloc(p, size, 0); in _DefRealloc()
44 static void _DefFree(IFX_Allocator* pAllocator, void* p) in _DefFree() argument
46 ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->Free(p, 0); in _DefFree()
[all …]
Dfx_extension.cpp14 FX_HFILE FX_File_Open(FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator) in FX_File_Open() argument
16 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator); in FX_File_Open()
18 pFA->Release(pAllocator); in FX_File_Open()
23 FX_HFILE FX_File_Open(FX_WSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator) in FX_File_Open() argument
25 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator); in FX_File_Open()
27 pFA->Release(pAllocator); in FX_File_Open()
32 void FX_File_Close(FX_HFILE hFile, IFX_Allocator* pAllocator) in FX_File_Close() argument
36 ((IFXCRT_FileAccess*)hFile)->Release(pAllocator); in FX_File_Close()
83 IFX_FileStream* FX_CreateFileStream(FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator) in FX_CreateFileStream() argument
85 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator); in FX_CreateFileStream()
[all …]
Dfx_xml_parser.cpp584 …pBuffer, size_t size, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator) in Parse() argument
586 CXML_Parser parser(pAllocator); in Parse()
592 …(IFX_FileRead *pFile, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator) in Parse() argument
594 CXML_Parser parser(pAllocator); in Parse()
600 …_BufferRead *pBuffer, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator) in Parse() argument
602 CXML_Parser parser(pAllocator); in Parse()
608 CXML_Element::CXML_Element(IFX_Allocator* pAllocator) in CXML_Element() argument
613 , m_Children(pAllocator) in CXML_Element()
616 CXML_Element::CXML_Element(FX_BSTR qSpace, FX_BSTR tagName, IFX_Allocator* pAllocator) in CXML_Element() argument
621 , m_Children(pAllocator) in CXML_Element()
[all …]
Dfx_xml_composer.cpp30 IFX_Allocator* pAllocator = m_Children.m_pAllocator; in SetTag() local
31 m_QSpaceName.Set(qSpace, pAllocator); in SetTag()
32 m_TagName.Set(tagname, pAllocator); in SetTag()
37 IFX_Allocator* pAllocator = m_Children.m_pAllocator; in SetTag() local
40 m_QSpaceName.Set(bsSpace, pAllocator); in SetTag()
41 m_TagName.Set(bsName, pAllocator); in SetTag()
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… in CFX_CRTFileStream() argument
128 CFX_MemoryStream(FX_BOOL bConsecutive, IFX_Allocator* pAllocator) in CFX_MemoryStream() argument
129 : m_Blocks(pAllocator) in CFX_MemoryStream()
139 CFX_MemoryStream(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver, IFX_Allocator* pAllocator) in CFX_MemoryStream() argument
140 : m_Blocks(pAllocator) in CFX_MemoryStream()
153 IFX_Allocator* pAllocator = m_Blocks.m_pAllocator; in ~CFX_MemoryStream() local
156 FX_Allocator_Free(pAllocator, (FX_LPBYTE)m_Blocks[i]); in ~CFX_MemoryStream()
172 IFX_Allocator* pAllocator = m_Blocks.m_pAllocator; in Release() local
[all …]
Dfx_basic_plex.cpp9 CFX_Plex* CFX_Plex::Create(IFX_Allocator* pAllocator, CFX_Plex*& pHead, FX_DWORD nMax, FX_DWORD cbE… in Create() argument
11 …CFX_Plex* p = (CFX_Plex*)FX_Allocator_Alloc(pAllocator, FX_BYTE, sizeof(CFX_Plex) + nMax * cbEleme… in Create()
19 void CFX_Plex::FreeDataChain(IFX_Allocator* pAllocator) in FreeDataChain() argument
25 FX_Allocator_Free(pAllocator, bytes); in FreeDataChain()
Dxml_int.h12 CXML_DataBufAcc(FX_LPCBYTE pBuffer, size_t size, IFX_Allocator* pAllocator = NULL)
13 : m_pAllocator(pAllocator) in m_pAllocator() argument
73 CXML_DataStmAcc(IFX_FileRead *pFileRead, IFX_Allocator* pAllocator = NULL)
74 : m_pAllocator(pAllocator) in m_pAllocator() argument
149 CXML_Parser(IFX_Allocator* pAllocator = NULL) : m_pAllocator(pAllocator) {} in m_pAllocator() argument
Dfxcrt_platforms.cpp10 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator) in FXCRT_FileAccess_Create() argument
12 if (pAllocator) { in FXCRT_FileAccess_Create()
13 return FX_NewAtAllocator(pAllocator) CFXCRT_FileAccess_CRT; in FXCRT_FileAccess_Create()
74 void CFXCRT_FileAccess_CRT::Release(IFX_Allocator* pAllocator) in Release() argument
76 if (pAllocator) { in Release()
77 FX_DeleteAtAllocator(this, pAllocator, CFXCRT_FileAccess_CRT); in Release()
Dfxcrt_posix.cpp10 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator) in FXCRT_FileAccess_Create() argument
12 if (pAllocator) { in FXCRT_FileAccess_Create()
13 return FX_NewAtAllocator(pAllocator) CFXCRT_FileAccess_Posix(); in FXCRT_FileAccess_Create()
62 void CFXCRT_FileAccess_Posix::Release(IFX_Allocator* pAllocator) in Release() argument
64 if (pAllocator) { in Release()
65 FX_DeleteAtAllocator(this, pAllocator, CFXCRT_FileAccess_Posix); in Release()
Dfx_basic_maps.cpp17 CFX_MapPtrToPtr::CFX_MapPtrToPtr(int nBlockSize, IFX_Allocator* pAllocator) in CFX_MapPtrToPtr() argument
18 : m_pAllocator(pAllocator) in CFX_MapPtrToPtr()
187 CFX_MapByteStringToPtr::CFX_MapByteStringToPtr(int nBlockSize, IFX_Allocator* pAllocator) in CFX_MapByteStringToPtr() argument
188 : m_pAllocator(pAllocator) in CFX_MapByteStringToPtr()
394 static void _CompactStringRelease(IFX_Allocator* pAllocator, _CompactString* pCompact) in _CompactStringRelease() argument
397 FX_Allocator_Free(pAllocator, pCompact->m_pBuffer); in _CompactStringRelease()
413 static void _CompactStringStore(IFX_Allocator* pAllocator, _CompactString* pCompact, FX_LPCBYTE pSt… in _CompactStringStore() argument
423 pCompact->m_pBuffer = FX_Allocator_Alloc(pAllocator, FX_BYTE, len); in _CompactStringStore()
440 CFX_CMapByteStringToPtr::CFX_CMapByteStringToPtr(IFX_Allocator* pAllocator) in CFX_CMapByteStringToPtr() argument
441 : m_Buffer(sizeof(_CompactString) + sizeof(void*), CMAP_ALLOC_STEP, CMAP_INDEX_SIZE, pAllocator) in CFX_CMapByteStringToPtr()
[all …]
Dfxcrt_windows.cpp26 IFXCRT_FileAccess* FXCRT_FileAccess_Create(IFX_Allocator* pAllocator) in FXCRT_FileAccess_Create() argument
28 if (pAllocator) { in FXCRT_FileAccess_Create()
29 return FX_NewAtAllocator(pAllocator) CFXCRT_FileAccess_Win64; in FXCRT_FileAccess_Create()
95 void CFXCRT_FileAccess_Win64::Release(IFX_Allocator* pAllocator) in Release() argument
97 if (pAllocator) { in Release()
98 FX_DeleteAtAllocator(this, pAllocator, CFXCRT_FileAccess_Win64); in Release()
Dplex.h13 …static CFX_Plex* Create(IFX_Allocator* pAllocator, CFX_Plex*& head, FX_DWORD nMax, FX_DWORD cbElem…
14 void FreeDataChain(IFX_Allocator* pAllocator);
Dfx_basic_buffer.cpp9 CFX_BinaryBuf::CFX_BinaryBuf(IFX_Allocator* pAllocator) in CFX_BinaryBuf() argument
10 : m_pAllocator(pAllocator) in CFX_BinaryBuf()
17 CFX_BinaryBuf::CFX_BinaryBuf(FX_STRSIZE size, IFX_Allocator* pAllocator) in CFX_BinaryBuf() argument
18 : m_pAllocator(pAllocator) in CFX_BinaryBuf()
442 IFX_BufferArchive::IFX_BufferArchive(FX_STRSIZE size, IFX_Allocator* pAllocator) in IFX_BufferArchive() argument
443 : m_pAllocator(pAllocator) in IFX_BufferArchive()
504 CFX_FileBufferArchive::CFX_FileBufferArchive(FX_STRSIZE size, IFX_Allocator* pAllocator) in CFX_FileBufferArchive() argument
505 : IFX_BufferArchive(size, pAllocator) in CFX_FileBufferArchive()
Dfx_basic_utf.cpp91 …_UTF8Encode(FX_LPCWSTR pwsStr, FX_STRSIZE len, CFX_ByteStringL &utf8Str, IFX_Allocator* pAllocator) in FX_UTF8Encode() argument
97 CFX_UTF8Encoder encoder(pAllocator); in FX_UTF8Encode()
Dfx_basic_array.cpp8 CFX_BasicArray::CFX_BasicArray(int unit_size, IFX_Allocator* pAllocator) in CFX_BasicArray() argument
9 : m_pAllocator(pAllocator) in CFX_BasicArray()
147 …CFX_BaseSegmentedArray(int unit_size, int segment_units, int index_size, IFX_Allocator* pAllocator) in CFX_BaseSegmentedArray() argument
148 : m_pAllocator(pAllocator) in CFX_BaseSegmentedArray()
Dfx_basic_list.cpp9 CFX_PtrList::CFX_PtrList(int nBlockSize, IFX_Allocator* pAllocator) in CFX_PtrList() argument
10 : m_pAllocator(pAllocator) in CFX_PtrList()
Dfx_basic_bstring.cpp1173 void CFX_ByteStringL::Empty(IFX_Allocator* pAllocator) in Empty() argument
1176 FX_Allocator_Free(pAllocator, (FX_LPVOID)m_Ptr); in Empty()
1180 FX_LPSTR CFX_ByteStringL::AllocBuffer(FX_STRSIZE length, IFX_Allocator* pAllocator) in AllocBuffer() argument
1182 Empty(pAllocator); in AllocBuffer()
1183 FX_LPSTR str = FX_Allocator_Alloc(pAllocator, FX_CHAR, length + 1); in AllocBuffer()
1191 void CFX_ByteStringL::Set(FX_BSTR src, IFX_Allocator* pAllocator) in Set() argument
1193 Empty(pAllocator); in Set()
1195 FX_LPSTR str = FX_Allocator_Alloc(pAllocator, FX_CHAR, src.GetLength() + 1); in Set()
Dfxcrt_windows.h19 virtual void Release(IFX_Allocator* pAllocator = NULL);
Dfxcrt_posix.h19 virtual void Release(IFX_Allocator* pAllocator = NULL);
Dfxcrt_platforms.h21 virtual void Release(IFX_Allocator* pAllocator = NULL);
/external/pdfium/core/include/fxcrt/
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, i…
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_LPCSTR file, int line)
[all …]
Dfx_xml.h19 void Empty(IFX_Allocator* pAllocator = NULL)
21 m_QSpaceName.Empty(pAllocator);
22 m_AttrName.Empty(pAllocator);
23 m_Value.Empty(pAllocator);
38 void SetAt(FX_BSTR space, FX_BSTR name, FX_WSTR value, IFX_Allocator* pAllocator = NULL);
39 void RemoveAt(FX_BSTR space, FX_BSTR name, IFX_Allocator* pAllocator = NULL);
40 void RemoveAll(IFX_Allocator* pAllocator = NULL);
53 void Empty(IFX_Allocator* pAllocator = NULL)
55 m_Content.Empty(pAllocator);
57 void Set(FX_BOOL bCDATA, FX_WSTR content, IFX_Allocator* pAllocator = NULL)
[all …]
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) {} in CFX_BinaryBuf() argument
122 CFX_WideTextBuf(IFX_Allocator* pAllocator = NULL) : CFX_BinaryBuf(pAllocator) {} in CFX_BinaryBuf() argument
163 CFX_ArchiveSaver(IFX_Allocator* pAllocator = NULL) : m_SavingBuf(pAllocator), m_pStream(NULL) {} in m_SavingBuf() argument
238 IFX_BufferArchive(FX_STRSIZE size, IFX_Allocator* pAllocator = NULL);
272 CFX_FileBufferArchive(FX_STRSIZE size = 32768, IFX_Allocator* pAllocator = NULL);
304 CFX_UTF8Decoder(IFX_Allocator* pAllocator = NULL) : m_Buffer(pAllocator) in m_Buffer() argument
340 CFX_UTF8Encoder(IFX_Allocator* pAllocator = NULL) : m_Buffer(pAllocator) in m_Buffer() argument
378 CFX_BasicArray(int unit_size, IFX_Allocator* pAllocator = NULL);
[all …]
Dfx_stream.h44 FX_HFILE FX_File_Open(FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator = NULL);
45 FX_HFILE FX_File_Open(FX_WSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator = NULL);
46 void FX_File_Close(FX_HFILE hFile, IFX_Allocator* pAllocator = NULL);
88 IFX_FileWrite* FX_CreateFileWrite(FX_LPCSTR filename, IFX_Allocator* pAllocator = NULL);
89 IFX_FileWrite* FX_CreateFileWrite(FX_LPCWSTR filename, IFX_Allocator* pAllocator = NULL);
134 IFX_FileRead* FX_CreateFileRead(FX_LPCSTR filename, IFX_Allocator* pAllocator = NULL);
135 IFX_FileRead* FX_CreateFileRead(FX_LPCWSTR filename, IFX_Allocator* pAllocator = NULL);
162 …ream* FX_CreateFileStream(FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator = NULL);
163 …eam* FX_CreateFileStream(FX_LPCWSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator = NULL);
178 …ream(FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver = FALSE, IFX_Allocator* pAllocator = NULL);
[all …]
Dfx_string.h850 void Empty(IFX_Allocator* pAllocator);
851 FX_LPSTR AllocBuffer(FX_STRSIZE length, IFX_Allocator* pAllocator);
853 void Set(FX_BSTR src, IFX_Allocator* pAllocator);
861 void Empty(IFX_Allocator* pAllocator);
862 void Set(FX_WSTR src, IFX_Allocator* pAllocator);
869 …ode(FX_LPCWSTR pwsStr, FX_STRSIZE len, CFX_ByteStringL &utf8Str, IFX_Allocator* pAllocator = NULL);

12