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

Function fxIndexArray

xs/sources/xsArray.c:626–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void fxIndexArray(txMachine* the, txSlot* array)
627{
628 txSlot* address = array->value.array.address;
629 if (address) {
630 txIndex size = (((txChunk*)(((txByte*)address) - sizeof(txChunk)))->size) / sizeof(txSlot);
631 txIndex index = 0;
632 while (index < size) {
633 *((txIndex*)address) = index;
634 address->flag = XS_NO_FLAG;
635 address++;
636 index++;
637 }
638 }
639}
640
641txBoolean fxIsArray(txMachine* the, txSlot* instance)
642{

Callers 9

fxNewArrayFunction · 0.85
fxSortArrayItemsFunction · 0.85
fx_Array_prototype_fillFunction · 0.85
fx_Array_prototype_shiftFunction · 0.85
fx_Array_prototype_sliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected