Home
last modified time | relevance | path

Searched refs:fileOut (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_file_package_test.cpp332 …ofstream fileOut(g_packageResultPath + PACKAGE_RESULT_FILE_NAME, ios::out | ios::binary | ios::tru… variable
333 ASSERT_TRUE(fileOut.is_open());
334 fileOut.write(buffer.data(), buffer.size());
335 fileOut.close();
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Ddb_common.cpp234 FILE *fileOut = fopen(dstFile.c_str(), "wb"); in CopyFile() local
235 if (fileOut == nullptr) { in CopyFile()
252 size_t writeSize = fwrite(static_cast<void *>(tmpBlock.data()), 1, readSize, fileOut); in CopyFile()
253 if (ferror(fileOut) != 0 || writeSize != readSize) { in CopyFile()
270 if (fileOut != nullptr) { in CopyFile()
271 (void)fclose(fileOut); in CopyFile()