Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Ddcfmtest.cpp474 char *fileBuf = NULL; in ReadAndConvertFile() local
501 fileBuf = new char[fileSize]; in ReadAndConvertFile()
503 amtRead = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
516 fileBufNoBOM = fileBuf + 3; in ReadAndConvertFile()
518 if (fileSize<3 || uprv_strncmp(fileBuf, "\xEF\xBB\xBF", 3) != 0) { in ReadAndConvertFile()
521 fileBufNoBOM = fileBuf; in ReadAndConvertFile()
543 delete[] fileBuf; in ReadAndConvertFile()
Ditspoof.cpp339 LocalArray<char> fileBuf(new char[fileSize]); in testConfData() local
341 int32_t amt_read = fread(fileBuf.getAlias(), 1, fileSize, f.getAlias()); in testConfData()
347 … UnicodeString confusablesTxt = UnicodeString::fromUTF8(StringPiece(fileBuf.getAlias(), fileSize)); in testConfData()
Drbbitst.cpp1552 char *fileBuf = NULL; in ReadAndConvertFile() local
1578 fileBuf = new char[fileSize]; in ReadAndConvertFile()
1580 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
1593 fileBufC = fileBuf; in ReadAndConvertFile()
1595 fileBuf, fileSize, &signatureLength, &status); in ReadAndConvertFile()
1635 delete []fileBuf; in ReadAndConvertFile()
Dregextst.cpp3897 char *fileBuf = NULL; in ReadAndConvertFile() local
3923 fileBuf = new char[fileSize]; in ReadAndConvertFile()
3925 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
3938 fileBufC = fileBuf; in ReadAndConvertFile()
3940 fileBuf, fileSize, &signatureLength, &status); in ReadAndConvertFile()
3984 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/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/webrtc/webrtc/modules/audio_device/test/
Dfunc_test_manager.cc467 int16_t fileBuf[480]; in NeedMorePlayData() local
470 int32_t len = _playFile.Read((int8_t*) fileBuf, 2 * nSamples); in NeedMorePlayData()
474 _playFile.Read((int8_t*) fileBuf, 2 * nSamples); in NeedMorePlayData()
480 memcpy(audioSamples, fileBuf, 2 * nSamples); in NeedMorePlayData()
488 (*audio16) = fileBuf[i]; // left in NeedMorePlayData()
490 (*audio16) = fileBuf[i]; // right in NeedMorePlayData()