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

◆ seekg()

ifstream & fl::ifstream::seekg ( fl::size_t pos,
ios::seekdir dir = ios::seekdir::beg )

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

77 {
78 if (mHandle && mHandle->is_open()) {
79 seek_dir seek_direction =
81 (dir == ios::seekdir::cur) ? seek_dir::cur : seek_dir::end;
82 mHandle->seek(pos, seek_direction);
84 }
85 return *this;
86}
filebuf_ptr mHandle
Definition fstream.h:50
fl::size_t pos() const
Definition fstream.h:189
void updateState()
Definition fstream.h:56
seek_dir
Definition file_handle.h:19

References ifstream(), fl::ios::beg, fl::beg, fl::ios::cur, fl::cur, fl::end, mHandle, pos(), and updateState().

Referenced by seek(), and seek().

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