FastLED 3.10.8
Loading...
Searching...
No Matches

◆ openRead()

fl::ifstream fl::FileSystem::openRead ( const char * path)

Definition at line 170 of file fs.cpp.hpp.

170 {
171 if (!mFs) {
172 // Defensive: default-constructed FileSystem or one whose begin*()
173 // call failed has a null backend. Returning a closed ifstream
174 // lets downstream code branch on is_open() rather than crash.
175 return fl::ifstream();
176 }
177 return fl::ifstream(mFs->openRead(path));
178}
FsImplPtr mFs
Definition fs.h:106

References fl::FL_NO_EXCEPT, and mFs.

Referenced by loadJpeg(), openMp3(), openMpeg1Video(), openVideo(), and readText().

+ Here is the caller graph for this function: