MCPcopy Create free account
hub / github.com/FastLED/FastLED / close

Method close

src/fl/stl/fstream.cpp.hpp:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void ifstream::close() {
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 {
56 updateState();
57 }
58 }
59}
60
61ifstream& ifstream::read(char* buffer, fl::size_t count) {
62 mLastRead = 0;

Callers 1

resolve_hostFunction · 0.45

Calls 2

is_openMethod · 0.45
has_errorMethod · 0.45

Tested by

no test coverage detected