MCPcopy Create free account
hub / github.com/antirez/ds4 / renderer_write_char

Function renderer_write_char

ds4_agent.c:2599–2606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2597 if ((uc & 0xc0) == 0x80 && r->utf8_pending_len < sizeof(r->utf8_pending)) {
2598 r->utf8_pending[r->utf8_pending_len++] = c;
2599 if (r->utf8_pending_len == r->utf8_pending_need) renderer_flush_utf8(r);
2600 return;
2601 }
2602 renderer_flush_utf8(r);
2603 }
2604
2605 size_t need = renderer_utf8_need(uc);
2606 if (need == 1) {
2607 renderer_write_complete_char_raw(r, &c, 1);
2608 return;
2609 }

Callers 3

renderer_processFunction · 0.85
agent_stream_normal_byteFunction · 0.85

Tested by

no test coverage detected