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

Function PiuTextBufferClear

modules/piu/All/piuText.c:209–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void PiuTextBufferClear(xsMachine* the, PiuTextBuffer* buffer)
210{
211 size_t available = (*buffer)->available;
212 size_t current = (*buffer)->current = sizeof(PiuTextBufferRecord);
213 c_memset(((uint8_t*)(*buffer)) + current, 0, available - current);
214}
215
216void PiuTextBufferGrow(xsMachine *the, PiuTextBuffer* buffer, size_t size)
217{

Callers 4

PiuTextBeginFunction · 0.85
PiuTextFormatFunction · 0.85
PiuCodeSearchFunction · 0.85
PiuCodeParserBeginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected