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

◆ open()

void fl::ifstream::open ( const char * path,
ios::openmode mode = ios::in )

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

28 {
29 close();
30
31 // Build fopen mode string
32 const char* fmode = (mode & ios::binary) ? "rb" : "r";
33
35
36 if (mHandle->is_open()) {
37 if (mode & ios::ate) {
38 mHandle->seek(0, seek_dir::end);
39 }
41 } else {
43 }
44}
filebuf_ptr mHandle
Definition fstream.h:50
void updateState() FL_NO_EXCEPT
Definition fstream.h:56
void close() FL_NO_EXCEPT
const char * path() const FL_NO_EXCEPT
Definition fstream.h:156
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
static constexpr openmode ate
Definition fstream.h:30
static constexpr openmode binary
Definition fstream.h:29

References fl::ios::ate, fl::ios::binary, close(), fl::end, fl::FL_NO_EXCEPT, fl::adl_barrier::make_shared(), mHandle, path(), and updateState().

Referenced by ifstream().

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