68 l = (l < (int) count) ? l : (int) count;
91 return read(fc->
fd, buf, count);
124 const char *buf,
size_t sz)
141 int fd, off_t start_offset)
static off_t zebra_mem_tell(struct ZebraRecStream *s)
static void zebra_ext_destroy(struct ZebraRecStream *s)
static off_t zebra_mem_end(struct ZebraRecStream *s, off_t *offset)
static off_t zebra_ext_tell(struct ZebraRecStream *s)
void zebra_create_stream_fd(struct ZebraRecStream *stream, int fd, off_t start_offset)
void zebra_create_stream_mem(struct ZebraRecStream *stream, const char *buf, size_t sz)
static void zebra_mem_destroy(struct ZebraRecStream *s)
static off_t zebra_ext_end(struct ZebraRecStream *s, off_t *offset)
static off_t zebra_ext_seek(struct ZebraRecStream *s, off_t offset)
static off_t zebra_mem_seek(struct ZebraRecStream *s, off_t offset)
static int zebra_mem_read(struct ZebraRecStream *s, char *buf, size_t count)
static int zebra_ext_read(struct ZebraRecStream *s, char *buf, size_t count)
void(* destroy)(struct ZebraRecStream *s)
close and destroy stream
off_t(* seekf)(struct ZebraRecStream *s, off_t offset)
seek function
off_t(* endf)(struct ZebraRecStream *s, off_t *offset)
set and get of record position
int(* readf)(struct ZebraRecStream *s, char *buf, size_t count)
read function
off_t(* tellf)(struct ZebraRecStream *s)
tell function
const char * record_int_buf