MCPcopy Create free account
hub / github.com/apache/cloudberry / appendBinaryStringInfoNT

Function appendBinaryStringInfoNT

src/common/stringinfo.c:268–279  ·  view source on GitHub ↗

* appendBinaryStringInfoNT * * Append arbitrary binary data to a StringInfo, allocating more space * if necessary. Does not ensure a trailing null-byte exists. */

Source from the content-addressed store, hash-verified

266 * if necessary. Does not ensure a trailing null-byte exists.
267 */
268void
269appendBinaryStringInfoNT(StringInfo str, const char *data, int datalen)
270{
271 Assert(str != NULL);
272
273 /* Make more room if needed */
274 enlargeStringInfo(str, datalen);
275
276 /* OK, append the data */
277 memcpy(str->data + str->len, data, datalen);
278 str->len += datalen;
279}
280
281/*
282 * enlargeStringInfo

Callers 5

HandleExtendProtocolFunction · 0.85
epd_add_subtag_dataFunction · 0.85
pq_sendcountedtextFunction · 0.85
pq_sendstringFunction · 0.85

Calls 1

enlargeStringInfoFunction · 0.85

Tested by

no test coverage detected