FastLED 3.9.15
Loading...
Searching...
No Matches

◆ close()

void fl::ifstream::close ( )

Definition at line 46 of file fstream.cpp.hpp.

46 {
47 if (mHandle && mHandle->is_open()) {
48 mHandle->close();
49 // After successful close: keep good() = true to match std::ofstream behavior
50 // This allows fs_stub.hpp's createTextFile to work correctly
51 if (!mHandle->has_error()) {
52 mGood = true;
53 mEof = false;
54 mFail = false;
55 } else {
57 }
58 }
59}
filebuf_ptr mHandle
Definition fstream.h:50
bool mEof
Definition fstream.h:53
bool mFail
Definition fstream.h:54
bool mGood
Definition fstream.h:52
void updateState()
Definition fstream.h:56

References mEof, mFail, mGood, mHandle, and updateState().

Referenced by ~ifstream(), fl::FileSystem::loadJpeg(), open(), operator=(), and fl::FileSystem::readText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: