MCPcopy Create free account
hub / github.com/apache/trafficserver / ink_fast_itoa

Function ink_fast_itoa

include/tscore/ink_string.h:346–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346inline int
347ink_fast_itoa(int32_t val, char *buf, int buf_len)
348{
349 if ((val < 0) || (val > 99999)) {
350 int ret = snprintf(buf, buf_len, "%d", val);
351
352 return (ret >= 0 ? ret : 0);
353 }
354
355 return ink_small_itoa(static_cast<int>(val), buf, buf_len);
356}
357
358inline int
359ink_fast_uitoa(uint32_t val, char *buf, int buf_len)

Callers 5

set_bodyMethod · 0.85
set_portMethod · 0.85
mime_format_intFunction · 0.85
test_ink_string.ccFile · 0.85
append_valueMethod · 0.85

Calls 1

ink_small_itoaFunction · 0.85

Tested by

no test coverage detected