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

◆ bytes_left()

fl::size_t fl::filebuf::bytes_left ( ) const
virtual

Reimplemented in fl::detail::memorybuf, and fl::Mpeg1FileHandle.

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

14 {
15 fl::size_t s = size();
16 // tell() is non-const in the interface, but bytes_left needs it.
17 // Use const_cast for this read-only query - tell() doesn't mutate logical state.
18 fl::size_t t = const_cast<filebuf*>(this)->tell();
19 return (t <= s) ? (s - t) : 0;
20}
virtual fl::size_t size() const =0
virtual fl::size_t tell()=0
__SIZE_TYPE__ size_t
Definition s16x16x4.h:16

References size(), fl::t, and tell().

Referenced by available(), and bytesLeft().

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