Lines Matching refs:fp
165 FILE* fp = fopen(resolvedPath.c_str(), "rb");
166 if (fp == nullptr) {
175 fclose(fp);
181 while ((len = fread(buf.data(), sizeof(uint8_t), buf.size(), fp))) {
184 fclose(fp);
188 if (!feof(fp)) {
189 if (ferror(fp) != 0) {
191 fclose(fp);
195 if (fclose(fp) < 0) {
207 FILE* fp = fopen(unCompressFile.c_str(), "rb");
208 if (fp == nullptr) {
213 if (fseek(fp, SEEK_SET, SEEK_END) != 0) {
215 fclose(fp);
219 unsigned long size = ftell(fp);
221 if (fclose(fp) < 0) {
227 if (fclose(fp) < 0) {