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

Function modGetModAtom

xs/platforms/mc/xsHosts.c:462–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462char *modGetModAtom(txMachine *the, uint32_t atomTypeIn, int *atomSizeOut)
463{
464 uint8_t *xsb = (uint8_t *)kModulesStart;
465 if (!xsb || !the->archive) return NULL;
466
467 return findNthAtom(atomTypeIn, 0, xsb, c_read32be(xsb), atomSizeOut);
468}
469
470char *findNthAtom(uint32_t atomTypeIn, int index, const uint8_t *xsb, int xsbSize, int *atomSizeOut)
471{

Callers 4

doRemoteCommandFunction · 0.85
doRemoteCommandFunction · 0.85
doRemoteCommandFunction · 0.85
doRemoteCommandFunction · 0.85

Calls 1

findNthAtomFunction · 0.85

Tested by

no test coverage detected