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

Function fxWriteSlotTable

xs/sources/xsSnapshot.c:2276–2284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2274}
2275
2276void fxWriteSlotTable(txMachine* the, txSnapshot* snapshot, txSlot** address, txSize length)
2277{
2278 while (length > 0) {
2279 txSlot* buffer = fxProjectSlot(the, snapshot->firstProjection, *address);
2280 mxThrowIf((*snapshot->write)(snapshot->stream, &buffer, sizeof(txSlot*)));
2281 address++;
2282 length--;
2283 }
2284}
2285
2286void fxWriteSlots(txMachine* the, txSnapshot* snapshot)
2287{

Callers 2

fxWriteChunkTableFunction · 0.85
fxWriteSnapshotFunction · 0.85

Calls 1

fxProjectSlotFunction · 0.85

Tested by

no test coverage detected