Lines Matching refs:pAllocator
14 FX_HFILE FX_File_Open(FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator* pAllocator)
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)
25 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator);
27 pFA->Release(pAllocator);
32 void FX_File_Close(FX_HFILE hFile, IFX_Allocator* pAllocator)
36 ((IFXCRT_FileAccess*)hFile)->Release(pAllocator);
83 IFX_FileStream* FX_CreateFileStream(FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator)
85 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator);
90 pFA->Release(pAllocator);
93 if (pAllocator) {
94 return FX_NewAtAllocator(pAllocator) CFX_CRTFileStream(pFA, pAllocator);
96 return FX_NEW CFX_CRTFileStream(pFA, pAllocator);
99 IFX_FileStream* FX_CreateFileStream(FX_LPCWSTR filename, FX_DWORD dwModes, IFX_Allocator* pAllocator)
101 IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(pAllocator);
106 pFA->Release(pAllocator);
109 if (pAllocator) {
110 return FX_NewAtAllocator(pAllocator) CFX_CRTFileStream(pFA, pAllocator);
112 return FX_NEW CFX_CRTFileStream(pFA, pAllocator);
115 IFX_FileWrite* FX_CreateFileWrite(FX_LPCSTR filename, IFX_Allocator* pAllocator)
117 return FX_CreateFileStream(filename, FX_FILEMODE_Truncate, pAllocator);
119 IFX_FileWrite* FX_CreateFileWrite(FX_LPCWSTR filename, IFX_Allocator* pAllocator)
121 return FX_CreateFileStream(filename, FX_FILEMODE_Truncate, pAllocator);
123 IFX_FileRead* FX_CreateFileRead(FX_LPCSTR filename, IFX_Allocator* pAllocator)
125 return FX_CreateFileStream(filename, FX_FILEMODE_ReadOnly, pAllocator);
127 IFX_FileRead* FX_CreateFileRead(FX_LPCWSTR filename, IFX_Allocator* pAllocator)
129 return FX_CreateFileStream(filename, FX_FILEMODE_ReadOnly, pAllocator);
131 IFX_MemoryStream* FX_CreateMemoryStream(FX_LPBYTE pBuffer, size_t dwSize, FX_BOOL bTakeOver, IFX_Allocator* pAllocator)
133 if (pAllocator) {
134 return FX_NewAtAllocator(pAllocator)CFX_MemoryStream(pBuffer, dwSize, bTakeOver, pAllocator);
139 IFX_MemoryStream* FX_CreateMemoryStream(FX_BOOL bConsecutive, IFX_Allocator* pAllocator)
141 if (pAllocator) {
142 return FX_NewAtAllocator(pAllocator)CFX_MemoryStream(bConsecutive, pAllocator);