39 while ((cnt = cs->
readF(AH, &
buf, &buflen)))
50 const void *
data,
size_t dLen)
95 ret = fread(ptr, 1,
size, fp);
96 if (ret !=
size && !feof(fp))
97 pg_fatal(
"could not read from input file: %m");
139 pg_fatal(
"could not read from input file: %m");
141 pg_fatal(
"could not read from input file: end of file");
#define Assert(condition)
#define DEFAULT_IO_BUFFER_SIZE
static bool close_none(CompressFileHandle *CFH)
static int getc_none(CompressFileHandle *CFH)
static void EndCompressorNone(ArchiveHandle *AH, CompressorState *cs)
static bool write_none(const void *ptr, size_t size, CompressFileHandle *CFH)
void InitCompressorNone(CompressorState *cs, const pg_compress_specification compression_spec)
static bool eof_none(CompressFileHandle *CFH)
void InitCompressFileHandleNone(CompressFileHandle *CFH, const pg_compress_specification compression_spec)
static char * gets_none(char *ptr, int size, CompressFileHandle *CFH)
static bool open_write_none(const char *path, const char *mode, CompressFileHandle *CFH)
static const char * get_error_none(CompressFileHandle *CFH)
static bool read_none(void *ptr, size_t size, size_t *rsize, CompressFileHandle *CFH)
static void WriteDataToArchiveNone(ArchiveHandle *AH, CompressorState *cs, const void *data, size_t dLen)
static bool open_none(const char *path, int fd, const char *mode, CompressFileHandle *CFH)
static void ReadDataFromArchiveNone(ArchiveHandle *AH, CompressorState *cs)
void * pg_malloc(size_t size)
if(TABLE==NULL||TABLE_index==NULL)
void ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
static PgChecksumMode mode
static int fd(const char *x, int i)
static pg_noinline void Size size
bool(* open_write_func)(const char *path, const char *mode, CompressFileHandle *CFH)
const char *(* get_error_func)(CompressFileHandle *CFH)
bool(* write_func)(const void *ptr, size_t size, struct CompressFileHandle *CFH)
int(* getc_func)(CompressFileHandle *CFH)
char *(* gets_func)(char *s, int size, CompressFileHandle *CFH)
bool(* eof_func)(CompressFileHandle *CFH)
bool(* open_func)(const char *path, int fd, const char *mode, CompressFileHandle *CFH)
bool(* close_func)(CompressFileHandle *CFH)
bool(* read_func)(void *ptr, size_t size, size_t *rsize, CompressFileHandle *CFH)
void(* readData)(ArchiveHandle *AH, CompressorState *cs)
pg_compress_specification compression_spec
void(* end)(ArchiveHandle *AH, CompressorState *cs)
void(* writeData)(ArchiveHandle *AH, CompressorState *cs, const void *data, size_t dLen)