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

Function fxGrowChunk

xs/sources/xsMemory.c:607–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void* fxGrowChunk(txMachine* the, txSize size)
608{
609 txBlock* block = fxGrowChunks(the, size);
610 txChunk* chunk = C_NULL;
611 if (block) {
612 chunk = (txChunk*)(block->current);
613 block->current += size;
614 chunk->temporary = block->current;
615 }
616 return chunk;
617}
618
619void* fxGrowChunks(txMachine* the, txSize size)
620{

Callers 2

fxNewChunkFunction · 0.85
fxNewGrowableChunkFunction · 0.85

Calls 1

fxGrowChunksFunction · 0.85

Tested by

no test coverage detected