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

Function fxBufferName

xs/sources/xsAll.c:190–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void fxBufferName(txString dst, txString src, txSize size)
191{
192 dst += mxStringLength(dst);
193 for (;;) {
194 txInteger c;
195 txSize length;
196 src = mxStringByteDecode(src, &c);
197 if (c == C_EOF)
198 break;
199 length = mxStringByteLength(c);
200 if (length > size)
201 break;
202 dst = mxStringByteEncode(dst, c);
203 size -= length;
204 }
205 *dst = 0;
206}
207
208txString fxConcatString(txMachine* the, txSlot* a, txSlot* b)
209{

Callers 2

fxBufferObjectNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected