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

Function fxToStringBuffer

xs/sources/xsAPI.c:318–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318txString fxToStringBuffer(txMachine* the, txSlot* theSlot, txString theBuffer, txSize theSize)
319{
320 char* aString;
321 txSize aSize;
322
323 aString = fxToString(the, theSlot);
324 aSize = mxStringLength(aString) + 1;
325 if (aSize > theSize)
326 mxRangeError("cannot buffer string");
327 c_memcpy(theBuffer, aString, aSize);
328 return theBuffer;
329}
330
331void fxUnsigned(txMachine* the, txSlot* theSlot, txUnsigned theValue)
332{

Callers 7

fxFindModuleFunction · 0.85
fxFindModuleFunction · 0.85
fxResolveSpecifierFunction · 0.85
fxFindModuleFunction · 0.85
fxFindModuleFunction · 0.85
fxFindModuleFunction · 0.85
fxFindModuleFunction · 0.85

Calls 1

fxToStringFunction · 0.85

Tested by

no test coverage detected