postgres-wire/cbits/include/pw_utils.h
2017-02-25 20:40:36 +03:00

13 lines
291 B
C

#include <stdint.h>
#include <stdlib.h>
#include <arpa/inet.h>
#define DATAROW_HEADER 'D'
#define HEADER_SIZE 5
#define HEADER_TYPE_SIZE 1
#define NEED_MORE_INPUT 0x01
#define OTHER_HEADER 0x02
size_t scan_datarows(char *buffer, size_t len, unsigned long *p_count, int *reason);