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

Function fxBigUint64Setter

xs/sources/xsDataView.c:2899–2909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2897}
2898
2899void fxBigUint64Setter(txMachine* the, txSlot* data, txInteger offset, txSlot* slot, int endian)
2900{
2901 txU8 value = (txU8)fxToBigUint64(the, slot);
2902#ifdef mxMisalignedSettersCrash
2903 value = EXPORT(U64);
2904 c_memcpy(data->value.arrayBuffer.address + offset, &value, sizeof(txU8));
2905#else
2906 *((txU8*)(data->value.arrayBuffer.address + offset)) = EXPORT(U64);
2907#endif
2908 mxMeterOne();
2909}
2910
2911#if mxFloat16
2912

Callers

nothing calls this directly

Calls 1

fxToBigUint64Function · 0.85

Tested by

no test coverage detected