| 3040 | } |
| 3041 | |
| 3042 | bool jpeg_decoder_file_stream::open(const char* Pfilename) |
| 3043 | { |
| 3044 | close(); |
| 3045 | |
| 3046 | m_eof_flag = false; |
| 3047 | m_error_flag = false; |
| 3048 | |
| 3049 | #if defined(_MSC_VER) |
| 3050 | m_pFile = nullptr; |
| 3051 | fopen_s(&m_pFile, Pfilename, "rb"); |
| 3052 | #else |
| 3053 | m_pFile = fopen(Pfilename, "rb"); |
| 3054 | #endif |
| 3055 | return m_pFile != nullptr; |
| 3056 | } |
| 3057 | |
| 3058 | int jpeg_decoder_file_stream::read(uint8* pBuf, int max_bytes_to_read, bool* pEOF_flag) |
| 3059 | { |
no outgoing calls
no test coverage detected