uint64_t getCompressedIn()
StreamFactory(ChunkedFile *file)
ChunkedFile reads and writes files which contain interleaved chunks of compressed and uncompressed da...
void setUnusedLength(int nUnused)
uint64_t offset_
current position in the file
boost::shared_ptr< Stream > lz4_stream_
int nUnused_
number of bytes of extra data read by compressed stream
void advanceOffset(uint64_t nbytes)
Stream(ChunkedFile *file)
uint64_t compressed_in_
number of bytes written to current compressed stream
void setCompressedIn(uint64_t nbytes)
virtual void startWrite()
void setUnused(char *unused)
boost::shared_ptr< Stream > bz2_stream_
boost::shared_ptr< Stream > getStream(CompressionType type) const
boost::shared_ptr< Stream > uncompressed_stream_
char * unused_
extra data read by compressed stream