27 bool countincludesself);
51 Assert(buf->len + (
int)
sizeof(
uint8) <= buf->maxlen);
52 memcpy((
char *pg_restrict) (buf->data + buf->len), &ni,
sizeof(
uint8));
53 buf->len +=
sizeof(
uint8);
66 memcpy((
char *pg_restrict) (buf->data + buf->len), &ni,
sizeof(
uint16));
67 buf->len +=
sizeof(
uint16);
80 memcpy((
char *pg_restrict) (buf->data + buf->len), &ni,
sizeof(
uint32));
81 buf->len +=
sizeof(
uint32);
93 Assert(buf->len + (
int)
sizeof(uint64) <= buf->maxlen);
94 memcpy((
char *pg_restrict) (buf->data + buf->len), &ni,
sizeof(uint64));
95 buf->len +=
sizeof(uint64);
111 int slen = strlen(str);
118 Assert(buf->len + slen + 1 <= buf->maxlen);
120 memcpy(((
char *pg_restrict) buf->data + buf->len), p, slen + 1);
121 buf->len += slen + 1;
186 elog(
ERROR,
"unsupported integer size %d", b);
char * pg_server_to_client(const char *s, int len)
void pfree(void *pointer)
void enlargeStringInfo(StringInfo str, int needed)
#define Assert(condition)