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

Function fxWriteChunkZero

xs/sources/xsSnapshot.c:2063–2070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2061}
2062
2063void fxWriteChunkZero(txMachine* the, txSnapshot* snapshot, txSize size)
2064{
2065 txByte zero = 0;
2066 while (size > 0) {
2067 mxThrowIf((*snapshot->write)(snapshot->stream, &zero, sizeof(txByte)));
2068 size--;
2069 }
2070}
2071
2072void fxWriteChunks(txMachine* the, txSnapshot* snapshot)
2073{

Callers 2

fxWriteChunkBigIntFunction · 0.85
fxWriteChunkTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected