Lines Matching refs:fp_
31 if (fp_ != nullptr) {
32 fclose(fp_);
33 fp_ = nullptr;
54 fp_ = fopen(resolvedPath.c_str(), "web+");
55 if (fp_ == nullptr) {
69 if (setvbuf(fp_, fileBuffer_.data(), _IOFBF, WRITER_BUFFER_SIZE) != 0) {
78 HLOG_ASSERT(fp_ != nullptr);
88 if (fclose(fp_) != 0) {
92 fp_ = nullptr;
147 HLOG_ASSERT(fp_ != nullptr);
148 if (fseek(fp_, dataSection_.offset, SEEK_SET) != 0) {
210 HLOG_ASSERT(fp_ != nullptr);
213 CHECK_TRUE(fread(buf, len, 1, fp_) != 1, false, 1, "failed to read file");
229 off_t offset = ftello(fp_);
243 CHECK_TRUE(len != 0u && fwrite(buf, len, 1, fp_) != 1, false, 1, "PerfFileWriter fwrite fail ");
255 if (fp_ == nullptr) {
257 } else if (fseek(fp_, header_.size, SEEK_SET) == -1) {
321 if (fseek(fp_, 0, SEEK_SET) == -1) {
332 if (fseek(fp_, 0, SEEK_END) != 0) {
336 CHECK_TRUE((featureOffset = ftell(fp_)) == -1, false, 1, "ftell return error ");
362 long offset = ftell(fp_);