1 #ifndef ossimBlockStream_HEADER 2 #define ossimBlockStream_HEADER 1 virtual ~BlockIStream()
Destructor will set any shared pointer to 0.
This code was derived from https://gist.github.com/mshockwave.
std::shared_ptr< ossim::istream > m_adaptStream
Maintain a shared pointer to the stream we are adapting to be block aligned.
BlockIStream(std::shared_ptr< ossim::istream > adaptStream, ossim_uint64 blockSize=4096)
Constructor must be initialized with an inputstream.
unsigned long long ossim_uint64
std::basic_istream< char > istream
Base class for char input streams.
Allows one to adapt any input stream to be block aligned for any read it will internally read overlap...
BlockStreamBuffer m_blockStreamBuffer
The buffer where all the block align implementation resides.
This is the BlockStreamBuffer class and derives from stream buf.