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

Function fxWriteChunkData

xs/sources/xsSnapshot.c:2037–2047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2035}
2036
2037void fxWriteChunkData(txMachine* the, txSnapshot* snapshot, void* address)
2038{
2039 txChunk* chunk = (txChunk*)(((txByte*)(address)) - sizeof(txChunk));
2040 if (chunk->size & mxChunkFlag) {
2041 txByte* temporary = chunk->temporary;
2042 chunk->size &= ~mxChunkFlag;
2043 chunk->temporary = C_NULL;
2044 mxThrowIf((*snapshot->write)(snapshot->stream, chunk, chunk->size));
2045 chunk->temporary = temporary;
2046 }
2047}
2048
2049void fxWriteChunkTable(txMachine* the, txSnapshot* snapshot, txSlot** address, txSize length)
2050{

Callers 1

fxWriteChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected