* pqSkipnchar: * skip over len bytes in input buffer. * * Note: this is primarily useful for its debug output, which should * be exactly the same as for pqGetnchar. We assume the data in question * will actually be used, but just isn't getting copied anywhere as yet. */
| 192 | * will actually be used, but just isn't getting copied anywhere as yet. |
| 193 | */ |
| 194 | int |
| 195 | pqSkipnchar(size_t len, PGconn *conn) |
| 196 | { |
| 197 | if (len > (size_t) (conn->inEnd - conn->inCursor)) |
| 198 | return EOF; |
| 199 | |
| 200 | conn->inCursor += len; |
| 201 | |
| 202 | return 0; |
| 203 | } |
| 204 | |
| 205 | /* |
| 206 | * pqPutnchar: |