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

◆ close()

void fl::ofstream::close ( )

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

154 {
155 if (mHandle && mHandle->is_open()) {
156 mHandle->close();
157 // After successful close: keep good() = true to match std::ofstream behavior
158 // This allows fs_stub.hpp's createTextFile to work correctly
159 if (!mHandle->has_error()) {
160 mGood = true;
161 mEof = false;
162 mFail = false;
163 } else {
164 updateState();
165 }
166 }
167}
void updateState()
Definition fstream.h:215
filebuf_ptr mHandle
Definition fstream.h:209

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

Referenced by ~ofstream(), open(), and operator=().

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