| 1185 | } |
| 1186 | |
| 1187 | void Content::loadAsyncData(String filename, const std::function<void(OwnArray<uint8_t>&&, size_t)>& callback) { |
| 1188 | Content::loadAsyncUnsafe(filename, [callback](uint8_t* buffer, int64_t size) { |
| 1189 | callback(MakeOwnArray(buffer), s_cast<size_t>(size)); |
| 1190 | }); |
| 1191 | } |
| 1192 | |
| 1193 | void Content::loadAsyncBX(String filename, const std::function<void(const bgfx::Memory*)>& callback) { |
| 1194 | Content::loadAsyncUnsafe(filename, [callback](uint8_t* buffer, int64_t size) { |
no test coverage detected