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

Method close

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

Source from the content-addressed store, hash-verified

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;
50 fl::size totalRead = 0;

Callers 1

loadJpegMethod · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected