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

◆ tell()

fl::size_t fl::detail::posix_filebuf::tell ( )
overridevirtual

Implements fl::filebuf.

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

110 {
111 if (!mFile) {
113 return 0;
114 }
115 long pos = fl::ftell(mFile);
116 if (pos < 0) {
117 captureError();
118 return 0;
119 }
120 mLastError = 0;
121 return static_cast<fl::size_t>(pos);
122}
fl::size_t pos() const
__SIZE_TYPE__ size_t
Definition s16x16x4.h:16
constexpr int err_bad_file
Definition file_io.h:45
long ftell(FILE *file)
Get current file position.
Definition file_io.h:262

References captureError(), fl::io::err_bad_file, fl::ftell(), mFile, mLastError, and fl::filebuf::pos().

Referenced by operator=().

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