Home
last modified time | relevance | path

Searched refs:pFile (Results 1 – 25 of 45) sorted by relevance

12

/external/sonivox/arm-wt-22k/misc/
Deas_host.c87 FILE *pFile; member
231 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
237 *pFile = NULL; in EAS_HWOpenFile()
248 if (file->pFile == NULL) in EAS_HWOpenFile()
252 file->pFile = fopen((const char*) locator->path, "rb"); in EAS_HWOpenFile()
253 if (file->pFile == NULL) in EAS_HWOpenFile()
266 *pFile = file; in EAS_HWOpenFile()
287 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
291 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
316 if (file->pFile == NULL) in EAS_HWReadFile()
[all …]
/external/pdfium/fpdfsdk/
Dfpdf_attachment.cpp91 CPDF_Dictionary* pFile = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment() local
92 pFile->SetNewFor<CPDF_Name>("Type", "Filespec"); in FPDFDoc_AddAttachment()
93 pFile->SetNewFor<CPDF_String>("UF", wsName); in FPDFDoc_AddAttachment()
94 pFile->SetNewFor<CPDF_String>(pdfium::stream::kF, wsName); in FPDFDoc_AddAttachment()
98 if (!nameTree.AddValueAndName(pFile->MakeReference(pDoc), wsName)) { in FPDFDoc_AddAttachment()
102 return FPDFAttachmentFromCPDFObject(pFile); in FPDFDoc_AddAttachment()
137 CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment); in FPDFAttachment_GetName() local
138 if (!pFile) in FPDFAttachment_GetName()
141 return Utf16EncodeMaybeCopyAndReturnLength(CPDF_FileSpec(pFile).GetFileName(), in FPDFAttachment_GetName()
147 CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment); in FPDFAttachment_HasKey() local
[all …]
Dfpdf_editimg.cpp81 RetainPtr<IFX_SeekableReadStream> pFile = MakeSeekableReadStream(file_access); in LoadJpegHelper() local
83 pImgObj->GetImage()->SetJpegImageInline(pFile); in LoadJpegHelper()
85 pImgObj->GetImage()->SetJpegImage(pFile); in LoadJpegHelper()
/external/pdfium/core/fxge/
Dcfx_folderfontinfo.cpp57 ByteString ReadStringFromFile(FILE* pFile, uint32_t size) { in ReadStringFromFile() argument
62 if (!fread(buffer.data(), size, 1, pFile)) in ReadStringFromFile()
69 ByteString LoadTableFromTT(FILE* pFile, in LoadTableFromTT() argument
80 offset + size > fileSize || fseek(pFile, offset, SEEK_SET) < 0) { in LoadTableFromTT()
83 return ReadStringFromFile(pFile, size); in LoadTableFromTT()
176 std::unique_ptr<FILE, FxFileCloser> pFile(fopen(path.c_str(), "rb")); in ScanFile() local
177 if (!pFile) in ScanFile()
180 fseek(pFile.get(), 0, SEEK_END); in ScanFile()
182 uint32_t filesize = ftell(pFile.get()); in ScanFile()
184 fseek(pFile.get(), 0, SEEK_SET); in ScanFile()
[all …]
Dcfx_font.cpp51 IFX_SeekableReadStream* pFile = in FTStreamRead() local
53 return pFile && pFile->ReadBlockAtOffset(buffer, offset, count) ? count : 0; in FTStreamRead()
59 const RetainPtr<IFX_SeekableReadStream>& pFile, in LoadFileImp() argument
64 stream1->size = static_cast<unsigned long>(pFile->GetSize()); in LoadFileImp()
66 stream1->descriptor.pointer = static_cast<void*>(pFile.Get()); in LoadFileImp()
307 bool CFX_Font::LoadFile(const RetainPtr<IFX_SeekableReadStream>& pFile, in LoadFile() argument
313 m_Face = LoadFileImp(pFontMgr->GetFTLibrary(), pFile, nFaceIndex, &stream); in LoadFile()
/external/rust/crates/libsqlite3-sys/sqlite3/
Dwasm32-wasi-vfs.c200 static int demoClose(sqlite3_file *pFile){ in demoClose() argument
202 DemoFile *p = (DemoFile*)pFile; in demoClose()
213 sqlite3_file *pFile, in demoRead() argument
218 DemoFile *p = (DemoFile*)pFile; in demoRead()
253 sqlite3_file *pFile, in demoWrite() argument
258 DemoFile *p = (DemoFile*)pFile; in demoWrite()
304 static int demoTruncate(sqlite3_file *pFile, sqlite_int64 size){ in demoTruncate() argument
306 if( ftruncate(((DemoFile *)pFile)->fd, size) ) return SQLITE_IOERR_TRUNCATE; in demoTruncate()
314 static int demoSync(sqlite3_file *pFile, int flags){ in demoSync() argument
315 DemoFile *p = (DemoFile*)pFile; in demoSync()
[all …]
/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/
DEASLibVst.c71 FILE *pFile; member
497 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
503 *pFile = NULL; in EAS_HWOpenFile()
514 if (file->pFile == NULL) in EAS_HWOpenFile()
519 file->pFile = fopen((const char*) locator, "rb"); in EAS_HWOpenFile()
520 if (file->pFile == NULL) in EAS_HWOpenFile()
540 *pFile = file; in EAS_HWOpenFile()
561 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
565 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
590 if (file->pFile == NULL) in EAS_HWReadFile()
[all …]
DEASLib.c73 FILE *pFile; member
802 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
808 *pFile = NULL; in EAS_HWOpenFile()
819 if (file->pFile == NULL) in EAS_HWOpenFile()
824 file->pFile = fopen((const char*) locator, "rb"); in EAS_HWOpenFile()
825 if (file->pFile == NULL) in EAS_HWOpenFile()
845 *pFile = file; in EAS_HWOpenFile()
866 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
870 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
895 if (file->pFile == NULL) in EAS_HWReadFile()
[all …]
/external/sqlite/dist/
DAndroid.patch67 static void robust_close(unixFile *pFile, int h, int lineno){
76 pFile ? pFile->zPath : 0, lineno);
90 if( osFstat(pFile->h, &buf) ){
92 + return unixLogError(SQLITE_IOERR_FSTAT, "fstat", pFile->zPath);
95 nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
Dshell.c3799 static int apndClose(sqlite3_file *pFile){ in apndClose() argument
3800 pFile = ORIGFILE(pFile); in apndClose()
3801 return pFile->pMethods->xClose(pFile); in apndClose()
3808 sqlite3_file *pFile, in apndRead() argument
3813 ApndFile *p = (ApndFile *)pFile; in apndRead()
3814 pFile = ORIGFILE(pFile); in apndRead()
3815 return pFile->pMethods->xRead(pFile, zBuf, iAmt, iOfst+p->iPgOne); in apndRead()
3821 static int apndWriteMark(ApndFile *p, sqlite3_file *pFile){ in apndWriteMark() argument
3828 return pFile->pMethods->xWrite(pFile, a, APND_MARK_SIZE, p->iMark); in apndWriteMark()
3835 sqlite3_file *pFile, in apndWrite() argument
[all …]
Dsqlite3.c23129 sqlite3_file *pFile, in sqlite3OsOpen() argument
23139 rc = pVfs->xOpen(pVfs, zPath, pFile, flags & 0x1087f7f, pFlagsOut); in sqlite3OsOpen()
23140 assert( rc==SQLITE_OK || pFile->pMethods==0 ); in sqlite3OsOpen()
23224 sqlite3_file *pFile; in sqlite3OsOpenMalloc() local
23225 pFile = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile); in sqlite3OsOpenMalloc()
23226 if( pFile ){ in sqlite3OsOpenMalloc()
23227 rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags); in sqlite3OsOpenMalloc()
23229 sqlite3_free(pFile); in sqlite3OsOpenMalloc()
23231 *ppFile = pFile; in sqlite3OsOpenMalloc()
23238 SQLITE_PRIVATE void sqlite3OsCloseFree(sqlite3_file *pFile){ in sqlite3OsCloseFree() argument
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp128 void CPDF_Image::SetJpegImage(const RetainPtr<IFX_SeekableReadStream>& pFile) { in SetJpegImage() argument
129 uint32_t size = pdfium::base::checked_cast<uint32_t>(pFile->GetSize()); in SetJpegImage()
135 if (!pFile->ReadBlockAtOffset(data.data(), 0, dwEstimateSize)) in SetJpegImage()
141 if (pFile->ReadBlockAtOffset(data.data(), 0, size)) in SetJpegImage()
147 m_pStream->InitStreamFromFile(pFile, std::move(pDict)); in SetJpegImage()
151 const RetainPtr<IFX_SeekableReadStream>& pFile) { in SetJpegImageInline() argument
152 uint32_t size = pdfium::base::checked_cast<uint32_t>(pFile->GetSize()); in SetJpegImageInline()
157 if (!pFile->ReadBlockAtOffset(data.data(), 0, size)) in SetJpegImageInline()
Dcpdf_image.h51 void SetJpegImage(const RetainPtr<IFX_SeekableReadStream>& pFile);
52 void SetJpegImageInline(const RetainPtr<IFX_SeekableReadStream>& pFile);
/external/zlib/contrib/minizip/
Dminizip.c228 FILE* pFile = FOPEN_FUNC(filename, "rb"); in isLargeFile() local
230 if(pFile != NULL) in isLargeFile()
232 int n = FSEEKO_FUNC(pFile, 0, SEEK_END); in isLargeFile()
233 pos = FTELLO_FUNC(pFile); in isLargeFile()
240 fclose(pFile); in isLargeFile()
/external/rust/crates/libz-sys/src/zlib/contrib/minizip/
Dminizip.c228 FILE* pFile = FOPEN_FUNC(filename, "rb"); in isLargeFile() local
230 if(pFile != NULL) in isLargeFile()
232 int n = FSEEKO_FUNC(pFile, 0, SEEK_END); in isLargeFile()
233 pos = FTELLO_FUNC(pFile); in isLargeFile()
240 fclose(pFile); in isLargeFile()
/external/pdfium/core/fpdfapi/parser/
Dcfdf_document.cpp38 void CFDF_Document::ParseStream(RetainPtr<IFX_SeekableReadStream> pFile) { in ParseStream() argument
39 m_pFile = std::move(pFile); in ParseStream()
Dcpdf_stream.cpp79 const RetainPtr<IFX_SeekableReadStream>& pFile, in InitStreamFromFile() argument
83 m_pFile = pFile; in InitStreamFromFile()
84 m_dwSize = pdfium::base::checked_cast<uint32_t>(pFile->GetSize()); in InitStreamFromFile()
Dcfdf_document.h32 void ParseStream(RetainPtr<IFX_SeekableReadStream> pFile);
Dfpdf_parser_utility.cpp76 const RetainPtr<IFX_SeekableReadStream>& pFile) { in GetHeaderOffset() argument
80 if (!pFile->ReadBlockAtOffset(buf, offset, kBufSize)) in GetHeaderOffset()
/external/pdfium/core/fpdfdoc/
Dcpdf_action.cpp81 const CPDF_Object* pFile = m_pDict->GetDirectObjectFor(pdfium::stream::kF); in GetFilePath() local
82 if (pFile) in GetFilePath()
83 return CPDF_FileSpec(pFile).GetFileName(); in GetFilePath()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_llvm.hpp62 …llvm::DIFile* pFile = builder.createFile("${input_file}", "${os.path.normpath(input_dir).replace('… variable
70 …pJitMgr->CreateDebugStructType(pRetType, "${type['name']}", pFile, ${type['lineNum']}, dbgMembers);
/external/sqlite/dist/orig/
Dshell.c3794 static int apndClose(sqlite3_file *pFile){ in apndClose() argument
3795 pFile = ORIGFILE(pFile); in apndClose()
3796 return pFile->pMethods->xClose(pFile); in apndClose()
3803 sqlite3_file *pFile, in apndRead() argument
3808 ApndFile *p = (ApndFile *)pFile; in apndRead()
3809 pFile = ORIGFILE(pFile); in apndRead()
3810 return pFile->pMethods->xRead(pFile, zBuf, iAmt, iOfst+p->iPgOne); in apndRead()
3816 static int apndWriteMark(ApndFile *p, sqlite3_file *pFile){ in apndWriteMark() argument
3823 return pFile->pMethods->xWrite(pFile, a, APND_MARK_SIZE, p->iMark); in apndWriteMark()
3830 sqlite3_file *pFile, in apndWrite() argument
[all …]
/external/sonivox/arm-wt-22k/host_src/
Deas_host.h63 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod…
72 …SULT EAS_HWDupHandle (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE file, EAS_FILE_HANDLE* pFile);
Deas_hostmm.c236 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
243 *pFile = NULL; in EAS_HWOpenFile()
260 *pFile = file; in EAS_HWOpenFile()
/external/pdfium/xfa/fxfa/
Dcxfa_ffdoc.cpp224 const RetainPtr<IFX_SeekableStream>& pFile) { in SavePackage() argument
228 return exporter.Export(pFile, pNode ? pNode : GetXFADoc()->GetRoot()); in SavePackage()

12