| 2047 | } |
| 2048 | |
| 2049 | void fxWriteChunkTable(txMachine* the, txSnapshot* snapshot, txSlot** address, txSize length) |
| 2050 | { |
| 2051 | txChunk* chunk = (txChunk*)(((txByte*)(address)) - sizeof(txChunk)); |
| 2052 | if (chunk->size & mxChunkFlag) { |
| 2053 | txByte* temporary = chunk->temporary; |
| 2054 | chunk->size &= ~mxChunkFlag; |
| 2055 | chunk->temporary = C_NULL; |
| 2056 | mxThrowIf((*snapshot->write)(snapshot->stream, chunk, sizeof(txChunk))); |
| 2057 | chunk->temporary = temporary; |
| 2058 | fxWriteSlotTable(the, snapshot, address, length); |
| 2059 | fxWriteChunkZero(the, snapshot, chunk->size - sizeof(txChunk) - (length * sizeof(txSlot*))); |
| 2060 | } |
| 2061 | } |
| 2062 | |
| 2063 | void fxWriteChunkZero(txMachine* the, txSnapshot* snapshot, txSize size) |
| 2064 | { |
no test coverage detected