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

Function fxUnlinkChunks

xs/sources/xsSnapshot.c:1795–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795void fxUnlinkChunks(txMachine* the)
1796{
1797 txBlock* block = the->firstBlock;
1798 while (block) {
1799 txByte* current = ((txByte*)block) + sizeof(txBlock);
1800 txByte* limit = block->current;
1801 while (current < limit) {
1802 txSize size = ((txChunk*)current)->size;
1803 txByte* next = current + size;
1804 ((txChunk*)current)->temporary = C_NULL;
1805 current = next;
1806 }
1807 block = block->nextBlock;
1808 }
1809}
1810
1811txCallback fxUnprojectCallback(txMachine* the, txSnapshot* snapshot, txCallback callback)
1812{

Callers 1

fxWriteSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected