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

◆ close()

void fl::detail::posix_filebuf::close ( )
overridevirtual

Implements fl::filebuf.

Definition at line 67 of file file_handle.cpp.hpp.

67 {
68 if (mFile) {
69 int result = fl::fclose(mFile);
70 mFile = nullptr;
71 if (result != 0) {
73 } else {
74 mLastError = 0;
75 }
76 }
77}
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
int fclose(FILE *file)
Close a file.
Definition file_io.h:250

References captureError(), fl::fclose(), mFile, and mLastError.

Referenced by ~posix_filebuf(), operator=(), and operator=().

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