MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_PrintPreallocated

Function cJSON_PrintPreallocated

lib/cJSON.c:970–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970int cJSON_PrintPreallocated(cJSON *item, char *buf, const int len, const cjbool fmt)
971{
972 printbuffer p;
973
974 if (len < 0)
975 {
976 return false;
977 }
978
979 memset(&p, 0, sizeof(p));
980 p.buffer = (unsigned char*)buf;
981 p.length = (size_t)len;
982 p.offset = 0;
983 p.noalloc = true;
984 return print_value(item, 0, fmt, &p) != NULL;
985}
986
987int cJSON_PrintFlushed(cJSON *item, char *buf, const int len, const int fmt, flush_fn *func, void *param)
988{

Callers 2

print_mi_responseFunction · 0.85
pv_get_rtpquery_fFunction · 0.85

Calls 1

print_valueFunction · 0.70

Tested by

no test coverage detected