Lines Matching refs:pFile
215 FILE *pFile = nullptr;
216 pFile = fopen(strPathName.c_str(), "wb");
217 if (!pFile || buff == nullptr) {
220 uint32_t fileLen = fwrite(buff.get(), len, 1, pFile);
226 (void)fclose(pFile);
237 FILE *pFile = fopen(realPath, "rb");
238 if (pFile == nullptr) {
242 (void)fseek(pFile, 0, SEEK_END);
243 long fileLen = ftell(pFile);
245 (void)fclose(pFile);
251 (void)fclose(pFile);
255 (void)fseek(pFile, 0, SEEK_SET);
256 int32_t totolLength = static_cast<int32_t>(fread(pduBuffer.get(), 1, MMS_PDU_MAX_SIZE, pFile));
263 (void)fclose(pFile);