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

Function pqGetnchar

src/interfaces/libpq/fe-misc.c:172–184  ·  view source on GitHub ↗

* pqGetnchar: * get a string of exactly len bytes in buffer s, no null termination */

Source from the content-addressed store, hash-verified

170 * get a string of exactly len bytes in buffer s, no null termination
171 */
172int
173pqGetnchar(char *s, size_t len, PGconn *conn)
174{
175 if (len > (size_t) (conn->inEnd - conn->inCursor))
176 return EOF;
177
178 memcpy(s, conn->inBuffer + conn->inCursor, len);
179 /* no terminating null */
180
181 conn->inCursor += len;
182
183 return 0;
184}
185
186/*
187 * pqSkipnchar:

Callers 7

HandleExtendProtocolFunction · 0.85
pg_GSS_continueFunction · 0.85
pg_SSPI_continueFunction · 0.85
pg_SASL_continueFunction · 0.85
pg_password_sendauthFunction · 0.85
pqParseInput3Function · 0.85
pqFunctionCall3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected