| 296 | } |
| 297 | |
| 298 | EMSCRIPTEN_KEEPALIVE bool jsAppendFile(const char *path, const fl::u8 *data, |
| 299 | size_t len) { |
| 300 | auto entry = fl::_findIfExists(fl::string(path)); |
| 301 | if (!entry) { |
| 302 | FL_WARN("File must be declared before it can be appended."); |
| 303 | return false; |
| 304 | } |
| 305 | entry->append(data, len); |
| 306 | return true; |
| 307 | } |
| 308 | |
| 309 | EMSCRIPTEN_KEEPALIVE bool jsDeclareFile(const char *path, size_t len) { |
| 310 | // declare a file and it's length. But don't fill it in yet |
nothing calls this directly
no test coverage detected