MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxGetResource

Function fxGetResource

modules/piu/All/piuApplication.c:759–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757#endif
758
759const void *fxGetResource(xsMachine* the, void* archive, const char* path, size_t* size)
760{
761 const void* data;
762 if (archive)
763 data = fxGetArchiveData(the, archive, (xsStringValue)path, size);
764 else {
765 data = fxGetArchiveData(the, the->archive, (xsStringValue)path, size);
766 if (!data)
767 data = mcGetResource(the, path, size);
768 }
769 return data;
770}
771
772xsBooleanValue fxFindBoolean(xsMachine* the, xsSlot* slot, xsIdentifier id, xsBooleanValue* value)
773{

Callers 5

PiuStyleLookupFontFunction · 0.85
PiuLocalsCreateFunction · 0.85
PiuLocals_set_languageFunction · 0.85
PiuStyleLookupFontFunction · 0.85
PiuImage_createFunction · 0.85

Calls 2

fxGetArchiveDataFunction · 0.85
mcGetResourceFunction · 0.50

Tested by

no test coverage detected