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

Function _findIfExists

src/platforms/wasm/fs_wasm.cpp.hpp:248–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246};
247
248FileDataPtr _findIfExists(const fl::string &path) {
249 auto &reg = FileRegistry::instance();
250 fl::unique_lock<fl::mutex> lock(reg.mutex);
251 auto it = reg.files.find(path);
252 if (it != reg.files.end()) {
253 return it->second;
254 }
255 return FileDataPtr();
256}
257
258FileDataPtr _findOrCreate(const fl::string &path, size_t len) {
259 auto &reg = FileRegistry::instance();

Callers 1

jsAppendFileFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected