* pqTraceOutputInt16: output a 2-byte integer message to the log */
| 122 | * pqTraceOutputInt16: output a 2-byte integer message to the log |
| 123 | */ |
| 124 | static int |
| 125 | pqTraceOutputInt16(FILE *pfdebug, const char *data, int *cursor) |
| 126 | { |
| 127 | uint16 tmp; |
| 128 | int result; |
| 129 | |
| 130 | memcpy(&tmp, data + *cursor, 2); |
| 131 | *cursor += 2; |
| 132 | result = (int) pg_ntoh16(tmp); |
| 133 | fprintf(pfdebug, " %d", result); |
| 134 | |
| 135 | return result; |
| 136 | } |
| 137 | |
| 138 | /* |
| 139 | * pqTraceOutputInt32: output a 4-byte integer message to the log |
no outgoing calls
no test coverage detected