34template <
typename Key,
typename Value, fl::size N>
class FixedMap;
44 bool begin(FsImplPtr platform_filesystem);
51 openVideo(
const char *path, fl::size pixelsPerFrame,
float fps = 30.0f,
52 fl::size nFrameHistory = 0);
53 bool readText(
const char *path,
string *out);
56 string *error =
nullptr);
58 string *error =
nullptr);
59 void close(FileHandlePtr file);
72 virtual fl::size
size()
const = 0;
73 virtual fl::size
read(
fl::u8 *dst, fl::size bytesToRead) = 0;
74 virtual fl::size
pos()
const = 0;
75 virtual const char *
path()
const = 0;
91 virtual void accept(
const char *path) = 0;
97 virtual void end() = 0;
98 virtual void close(FileHandlePtr file) = 0;
99 virtual FileHandlePtr
openRead(
const char *path) = 0;
fl::size readCRGB(CRGB *dst, fl::size n)
virtual bool seek(fl::size pos)=0
virtual bool available() const =0
virtual fl::size size() const =0
virtual fl::size read(fl::u8 *dst, fl::size bytesToRead)=0
virtual const char * path() const =0
virtual fl::size bytesLeft() const
virtual fl::size pos() const =0
virtual bool valid() const =0
bool readText(const char *path, string *out)
FileHandlePtr openRead(const char *path)
bool readJson(const char *path, Json *doc)
bool readScreenMaps(const char *path, fl::fl_map< string, ScreenMap > *out, string *error=nullptr)
bool readScreenMap(const char *path, const char *name, ScreenMap *out, string *error=nullptr)
bool begin(FsImplPtr platform_filesystem)
Video openVideo(const char *path, fl::size pixelsPerFrame, float fps=30.0f, fl::size nFrameHistory=0)
void close(FileHandlePtr file)
virtual void close(FileHandlePtr file)=0
virtual FileHandlePtr openRead(const char *path)=0
virtual bool ls(Visitor &visitor)
#define FASTLED_NAMESPACE_END
#define FASTLED_NAMESPACE_BEGIN
Implements the FastLED namespace macros.
FsImplPtr make_sdcard_filesystem(int cs_pin)
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > fl_map
#define FASTLED_SMART_PTR(type)
Representation of an RGB pixel (Red, Green, Blue)
virtual void accept(const char *path)=0