istream.h revision 6449bd276af37b3e0b81a9c47ecd01f39a2cba53
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen uoff_t v_offset, v_size, v_limit; /* relative to start_offset */
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainen unsigned int mmaped:1; /* be careful when copying data */
f86c599ead3602dc2d63a473cc13c1119978f538Timo Sirainenstruct istream *i_stream_create_file(int fd, pool_t pool,
f86c599ead3602dc2d63a473cc13c1119978f538Timo Sirainenstruct istream *i_stream_create_mmap(int fd, pool_t pool, size_t block_size,
f40e6ef5190f68c2fd0e94c0b001bdf7d160236aTimo Sirainenstruct istream *i_stream_create_from_data(pool_t pool, const void *data,
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainen/* Reference counting. References start from 1, so calling i_stream_unref()
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainen destroys the stream if i_stream_ref() is never used. */