MCPcopy Create free account
hub / github.com/FastLED/FastLED / is_open

Method is_open

src/fl/codec/file_system_codecs.cpp.hpp:46–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 : mDecoder(decoder), mCurrentFrame(nullptr), mFrameSize(pixelsPerFrame * 3),
45 mCurrentPos(0), mPath(path), mHasValidFrame(false) { decodeNextFrameIfNeeded(); }
46 bool is_open() const override { return mDecoder != nullptr; }
47 void close() override { if (mDecoder) mDecoder->end(); }
48 fl::size_t read(char* dst, fl::size_t bytesToRead) override {
49 if (!mDecoder || !mHasValidFrame) return 0;

Callers 3

openMpeg1VideoMethod · 0.45
loadJpegMethod · 0.45
openMp3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected