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

Function fxGetArchiveResources

xs/sources/xsAPI.c:2088–2110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2086}
2087
2088static txU1 *fxGetArchiveResources(txMachine *the, void* archive, txU4 *size)
2089{
2090 txPreparation* preparation = the->preparation;
2091 txU1* p = archive;
2092 if (!preparation || !p) {
2093 *size = 0;
2094 return NULL;
2095 }
2096 p += mxArchiveHeaderSize;
2097 // NAME
2098 p += c_read32be(p);
2099 // SYMB
2100 p += c_read32be(p);
2101 // IDEN
2102 p += c_read32be(p);
2103 // MAPS
2104 p += c_read32be(p);
2105 // MODS
2106 p += c_read32be(p);
2107 // RSRC
2108 *size = c_read32be(p) - sizeof(Atom);
2109 return p + sizeof(Atom);
2110}
2111
2112void* fxGetArchiveData(txMachine* the, void* archive, txString path, size_t* size)
2113{

Callers 3

fxGetArchiveDataFunction · 0.85
fxGetArchiveDataCountFunction · 0.85
fxGetArchiveDataNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected