Home
last modified time | relevance | path

Searched refs:fileIn (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_file_package_test.cpp322 ifstream fileIn(g_packageResultPath + PACKAGE_RESULT_FILE_NAME, ios::in | ios::binary); variable
323 ASSERT_TRUE(fileIn.is_open());
324 fileIn.seekg(0, ios_base::end);
325 int fileLen = fileIn.tellg();
326 fileIn.seekg(0, ios_base::beg);
330 fileIn.read(buffer.data(), buffer.size());
331 fileIn.close();
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Ddb_common.cpp229 FILE *fileIn = fopen(srcFile.c_str(), "rb"); in CopyFile() local
230 if (fileIn == nullptr) { in CopyFile()
241 size_t readSize = fread(static_cast<void *>(tmpBlock.data()), 1, copyBlockSize, fileIn); in CopyFile()
244 if (feof(fileIn) != 0 && ferror(fileIn) != 0) { in CopyFile()
260 if (feof(fileIn) != 0) { in CopyFile()
267 if (fileIn != nullptr) { in CopyFile()
268 (void)fclose(fileIn); in CopyFile()
/ohos5.0/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
H A Dhitrace_dump.cpp567 std::ifstream fileIn(resolvedPath.c_str()); in ReadFileInner() local
568 if (!fileIn.is_open()) { in ReadFileInner()
573 std::string str((std::istreambuf_iterator<char>(fileIn)), std::istreambuf_iterator<char>()); in ReadFileInner()
574 fileIn.close(); in ReadFileInner()