istream-internal.h revision 4334b9b032298defd4d3906f5357698ff016ead0
#ifndef ISTREAM_INTERNAL_H
#define ISTREAM_INTERNAL_H
#include "istream.h"
#include "iostream-internal.h"
#define I_STREAM_MIN_SIZE 4096
struct istream_private {
/* inheritance: */
struct iostream_private iostream;
/* methods: */
/* data: */
int fd;
const unsigned char *buffer;
unsigned char *w_buffer; /* may be NULL */
/* parent stream's expected offset is kept here. i_stream_read()
always seeks parent stream to here before calling read(). */
/* increased every time the stream is changed (e.g. seek, read).
this way streams can check if their parent streams have been
accessed behind them. */
unsigned int access_counter;
unsigned int return_nolf_line:1;
};
struct istream *
#endif