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

Function initStringInfoOfSize

src/common/stringinfo.c:73–82  ·  view source on GitHub ↗

* initStringInfoOfSize * * Initialize a StringInfoData struct with data buffer of 'size' bytes */

Source from the content-addressed store, hash-verified

71 * Initialize a StringInfoData struct with data buffer of 'size' bytes
72 */
73void
74initStringInfoOfSize(StringInfo str, int size)
75{
76
77 str->data = (char *) palloc(size);
78 str->maxlen = size;
79 str->len = 0;
80 str->data[0] = '\0';
81 str->cursor = 0;
82}
83
84/*
85 * resetStringInfo

Callers 3

nodeToBinaryStringFastFunction · 0.85
pq_begintypsendFunction · 0.85

Calls 1

pallocFunction · 0.70

Tested by

no test coverage detected