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

Function fxLinkChunks

xs/sources/xsSnapshot.c:1143–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143void fxLinkChunks(txMachine* the)
1144{
1145 txBlock* block = the->firstBlock;
1146 while (block) {
1147 txByte* current = ((txByte*)block) + sizeof(txBlock);
1148 txByte* limit = block->current;
1149 while (current < limit) {
1150 txSize size = ((txChunk*)current)->size;
1151 size &= ~mxChunkFlag;
1152 ((txChunk*)current)->size = size;
1153 txByte* next = current + size;
1154 ((txChunk*)current)->temporary = next;
1155 current = next;
1156 }
1157 block = block->nextBlock;
1158 }
1159}
1160
1161void fxMeasureSlot(txMachine* the, txSnapshot* snapshot, txSlot* slot, txSize* chunkSize)
1162{

Callers 3

fxReadSnapshotFunction · 0.85
fxUseSnapshotFunction · 0.85
fxWriteSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected