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

Function fxEcho

xs/sources/xsDebug.c:1240–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238}
1239
1240void fxEcho(txMachine* the, txString theString)
1241{
1242 txInteger srcLength = mxStringLength(theString);
1243 txInteger dstLength = sizeof(the->echoBuffer) - the->echoOffset;
1244 while (srcLength > dstLength) {
1245 c_memcpy(the->echoBuffer + the->echoOffset, theString, dstLength);
1246 theString += dstLength;
1247 srcLength -= dstLength;
1248 the->echoOffset = sizeof(the->echoBuffer);
1249 fxSend(the, 1);
1250 the->echoOffset = 0;
1251 dstLength = sizeof(the->echoBuffer);
1252 }
1253 c_memcpy(the->echoBuffer + the->echoOffset, theString, srcLength);
1254 the->echoOffset += srcLength;
1255}
1256
1257void fxEchoAddress(txMachine* the, txSlot* theSlot)
1258{

Callers 15

fxDebugEvalFunction · 0.85
fxDebugImportFunction · 0.85
fxDebugLineFunction · 0.85
fxDebugLoopFunction · 0.85
fxEchoAddressFunction · 0.85
fxEchoArrayBufferFunction · 0.85
fxEchoExceptionFunction · 0.85
fxEchoFlagsFunction · 0.85
fxEchoFrameNameFunction · 0.85
fxEchoIntegerFunction · 0.85
fxEchoInstanceFunction · 0.85
fxEchoModuleFunction · 0.85

Calls 1

fxSendFunction · 0.70

Tested by

no test coverage detected