Home
last modified time | relevance | path

Searched refs:strp_buflen (Results 1 – 3 of 3) sorted by relevance

/third_party/grpc/src/core/lib/gpr/
Dstring_posix.cc34 size_t strp_buflen; in gpr_asprintf() local
46 strp_buflen = static_cast<size_t>(ret) + 1; in gpr_asprintf()
47 if ((*strp = static_cast<char*>(gpr_malloc(strp_buflen))) == nullptr) { in gpr_asprintf()
53 if (strp_buflen <= sizeof(buf)) { in gpr_asprintf()
54 memcpy(*strp, buf, strp_buflen); in gpr_asprintf()
60 ret = vsnprintf(*strp, strp_buflen, format, args); in gpr_asprintf()
62 if (static_cast<size_t>(ret) == strp_buflen - 1) { in gpr_asprintf()
Dstring_windows.cc37 size_t strp_buflen; in gpr_asprintf() local
49 strp_buflen = (size_t)ret + 1; in gpr_asprintf()
50 if ((*strp = (char*)gpr_malloc(strp_buflen)) == NULL) { in gpr_asprintf()
57 ret = vsnprintf_s(*strp, strp_buflen, _TRUNCATE, format, args); in gpr_asprintf()
59 if ((size_t)ret == strp_buflen - 1) { in gpr_asprintf()
Dlog_windows.cc57 size_t strp_buflen = (size_t)ret + 1; in gpr_log() local
58 message = (char*)gpr_malloc(strp_buflen); in gpr_log()
62 ret = vsnprintf_s(message, strp_buflen, _TRUNCATE, format, args); in gpr_log()
64 if ((size_t)ret != strp_buflen - 1) { in gpr_log()