Home
last modified time | relevance | path

Searched refs:fileBuf (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Ddcfmtest.cpp495 char *fileBuf = NULL; in ReadAndConvertFile() local
522 fileBuf = new char[fileSize]; in ReadAndConvertFile()
524 amtRead = static_cast<int32_t>(fread(fileBuf, 1, fileSize, f)); in ReadAndConvertFile()
537 fileBufNoBOM = fileBuf + 3; in ReadAndConvertFile()
539 if (fileSize<3 || uprv_strncmp(fileBuf, "\xEF\xBB\xBF", 3) != 0) { in ReadAndConvertFile()
542 fileBufNoBOM = fileBuf; in ReadAndConvertFile()
564 delete[] fileBuf; in ReadAndConvertFile()
Ditspoof.cpp357 LocalArray<char> fileBuf(new char[fileSize]); in testConfData() local
359 int32_t amt_read = static_cast<int32_t>(fread(fileBuf.getAlias(), 1, fileSize, f.getAlias())); in testConfData()
365 … UnicodeString confusablesTxt = UnicodeString::fromUTF8(StringPiece(fileBuf.getAlias(), fileSize)); in testConfData()
Drbbitst.cpp1191 char *fileBuf = NULL; in ReadAndConvertFile() local
1217 fileBuf = new char[fileSize]; in ReadAndConvertFile()
1219 amt_read = static_cast<int>(fread(fileBuf, 1, fileSize, f)); in ReadAndConvertFile()
1232 fileBufC = fileBuf; in ReadAndConvertFile()
1234 fileBuf, fileSize, &signatureLength, &status); in ReadAndConvertFile()
1274 delete []fileBuf; in ReadAndConvertFile()
Dregextst.cpp3878 char *fileBuf = NULL; in ReadAndConvertFile() local
3904 fileBuf = new char[fileSize]; in ReadAndConvertFile()
3906 amt_read = static_cast<int32_t>(fread(fileBuf, 1, fileSize, f)); in ReadAndConvertFile()
3919 fileBufC = fileBuf; in ReadAndConvertFile()
3921 fileBuf, fileSize, &signatureLength, &status); in ReadAndConvertFile()
3965 delete[] fileBuf; in ReadAndConvertFile()
/external/ltp/testcases/kernel/fs/scsi/ltpfs/
Dmain.c65 char *fileBuf; variable
113 fileBuf = malloc(statBuf.st_size); in main()
115 if (fileBuf) { in main()
117 read(tmpHandle, fileBuf, in main()
120 write(ltp_fileHandle, fileBuf, in main()
124 read(ltp_fileHandle, fileBuf, in main()
126 write(ltp_fileHandle, fileBuf, in main()
/external/llvm-project/mlir/lib/Target/LLVMIR/
DDebugTranslation.cpp189 SmallString<128> fileBuf; in translateFile() local
205 llvm::sys::path::append(fileBuf, *fileIt); in translateFile()
207 fileName = fileBuf; in translateFile()
/external/clang/lib/ARCMigrate/
DFileRemapper.cpp66 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> fileBuf = in initFromFile() local
68 if (!fileBuf) in initFromFile()
72 fileBuf.get()->getBuffer().split(lines, "\n"); in initFromFile()
/external/llvm-project/clang/lib/ARCMigrate/
DFileRemapper.cpp65 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> fileBuf = in initFromFile() local
67 if (!fileBuf) in initFromFile()
71 fileBuf.get()->getBuffer().split(lines, "\n"); in initFromFile()