Searched refs:ifs (Results 1 – 4 of 4) sorted by relevance
34 ifstream ifs; in ParseNfcChipType() local35 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()
386 std::ifstream ifs(file); in ReadFile() local387 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()
59 std::ifstream ifs(CACHE_PATH.c_str(), std::ios::in | std::ios::binary); in DestroyCache() local61 int cacheSize = ifs.tellg(); in DestroyCache()63 ifs.read(ptr, cacheSize); in DestroyCache()64 ifs.close(); in DestroyCache()