Home
last modified time | relevance | path

Searched refs:ifs (Results 1 – 4 of 4) sorted by relevance

/test/xts/hats/hdf/nfc/utils/
Dnfc_chip_type_parser.cpp34 ifstream ifs; in ParseNfcChipType() local
35 ifs.open(NFC_CHIP_PATH, ios::in); in ParseNfcChipType()
36 if (!ifs.is_open()) { in ParseNfcChipType()
40 ifs.getline(chipBuf, sizeof(chipBuf)); in ParseNfcChipType()
41 ifs.close(); in ParseNfcChipType()
/test/xts/acts/ai/mindspore/mindsporectest/src/
Dohos_common.cpp386 std::ifstream ifs(file); in ReadFile() local
387 if (!ifs.good()) { in ReadFile()
391 if (!ifs.is_open()) { in ReadFile()
392 ifs.close(); in ReadFile()
396 ifs.seekg(0, std::ios::end); in ReadFile()
397 *size = ifs.tellg(); in ReadFile()
401 ifs.close(); in ReadFile()
405 ifs.seekg(0, std::ios::beg); in ReadFile()
406 ifs.read(buf, *size); in ReadFile()
407 ifs.close(); in ReadFile()
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
DCompileTest.cpp59 std::ifstream ifs(CACHE_PATH.c_str(), std::ios::in | std::ios::binary); in DestroyCache() local
61 int cacheSize = ifs.tellg(); in DestroyCache()
63 ifs.read(ptr, cacheSize); in DestroyCache()
64 ifs.close(); in DestroyCache()
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/
DCompileTest.cpp59 std::ifstream ifs(CACHE_PATH.c_str(), std::ios::in | std::ios::binary); in DestroyCache() local
61 int cacheSize = ifs.tellg(); in DestroyCache()
63 ifs.read(ptr, cacheSize); in DestroyCache()
64 ifs.close(); in DestroyCache()