MCPcopy Create free account
hub / github.com/defold/defold / open

Method open

engine/dlib/src/basis/encoder/jpgd.cpp:3042–3056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 15

dmloader.jsFile · 0.80
library_script.jsFile · 0.80
library_sys.jsFile · 0.80
check_uid_uniquenessFunction · 0.80
mainFunction · 0.80
gen_toneFunction · 0.80
to_lua_annotationFunction · 0.80
gz_treeFunction · 0.80
generate_markdownFunction · 0.80
generate_jsonFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected