MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_buffered_out

Function mi_buffered_out

3rd/mimalloc-2.0.9/src/stats.c:278–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static void mi_cdecl mi_buffered_out(const char* msg, void* arg) {
279 buffered_t* buf = (buffered_t*)arg;
280 if (msg==NULL || buf==NULL) return;
281 for (const char* src = msg; *src != 0; src++) {
282 char c = *src;
283 if (buf->used >= buf->count) mi_buffered_flush(buf);
284 mi_assert_internal(buf->used < buf->count);
285 buf->buf[buf->used++] = c;
286 if (c == '\n') mi_buffered_flush(buf);
287 }
288}
289
290//------------------------------------------------------------
291// Print statistics

Callers

nothing calls this directly

Calls 1

mi_buffered_flushFunction · 0.85

Tested by

no test coverage detected