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

Function fxMapHosts

xs/tools/xslBase.c:327–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void fxMapHosts(txLinker* linker, txLinkerScript* script, txID* theIDs)
328{
329 txByte* p = script->hostsBuffer;
330 if (p) {
331 txID c, i, id;
332 mxDecodeID(p, c);
333 for (i = 0; i < c; i++) {
334 p++;
335 mxDecodeID(p, id);
336 if (id != XS_NO_ID) {
337 id = theIDs[id];
338 p -= sizeof(txID);
339 mxEncodeID(p, id);
340 }
341 p += mxStringLength((char*)p) + 1;
342 }
343 linker->hostsCount += c;
344 }
345}
346
347void fxMapScript(txLinker* linker, txLinkerScript* script)
348{

Callers 1

fxMapScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected