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

Function jsDeclareFile

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

Source from the content-addressed store, hash-verified

307}
308
309EMSCRIPTEN_KEEPALIVE bool jsDeclareFile(const char *path, size_t len) {
310 // declare a file and it's length. But don't fill it in yet
311 auto inserted = fl::_createIfNotExists(fl::string(path), len);
312 if (!inserted) {
313 FL_WARN("File can only be declared once.");
314 return false;
315 }
316 return true;
317}
318
319EMSCRIPTEN_KEEPALIVE void fastled_declare_files(const char* jsonStr) {
320 fl::json doc = fl::json::parse(fl::string(jsonStr));

Callers 1

fastled_declare_filesFunction · 0.85

Calls 2

_createIfNotExistsFunction · 0.85
stringClass · 0.50

Tested by

no test coverage detected