FastLED 3.9.15
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
const char * path() const
Definition fstream.h:156
void updateState()
Definition fstream.h:56
static constexpr openmode ate
Definition fstream.h:30
static constexpr openmode binary
Definition fstream.h:29
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References fl::ios::ate, fl::ios::binary, close(), fl::end, fl::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: