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

Function fxBigIntEncode

xs/sources/xsBigInt.c:394–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392#endif
393
394void fxBigIntEncode(txByte* code, txBigInt* bigint, txSize size)
395{
396#if mxBigEndian
397 {
398 txS1* src = (txS1*)bigint->data;
399 txS1* dst = (txS1*)code;
400 while (size) {
401 dst[3] = *src++;
402 dst[2] = *src++;
403 dst[1] = *src++;
404 dst[0] = *src++;
405 dst += 4;
406 size--;
407 }
408 }
409#else
410 c_memcpy(code, bigint->data, size);
411#endif
412}
413
414#ifndef mxCompile
415txSlot* fxBigIntToInstance(txMachine* the, txSlot* slot)

Callers 1

fxParserCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected