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

Function fxBinHex

tools/xsbug/DebugBehavior.c:398–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396static const char gxHexaDigits[] = "0123456789ABCDEF";
397
398txString fxBinHex(txString string, void* data, size_t size)
399{
400 txU1* src = data;
401 while(size) {
402 txU1 byte = *src++;
403 *string++ = gxHexaDigits[byte >> 4];
404 *string++ = gxHexaDigits[byte & 0x0F];
405 size--;
406 }
407 return string;
408}
409
410void PiuDebugBehavior_compile(xsMachine* the)
411{

Callers 1

PiuDebugBehavior_compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected