8 #ifndef LT_IOSUBSTREAM_H
9 #define LT_IOSUBSTREAM_H
14 LT_BEGIN_LIZARDTECH_NAMESPACE
73 bool takeOwnership=
false);
224 LT_END_LIZARDTECH_NAMESPACE
LTIOSeekDir
Stream seek directions.
lt_uint32 LT_STATUS
An integral status code.
unsigned char lt_uint8
unsigned 8-bit integer
unsigned int lt_uint32
unsigned 32-bit integer
long long int lt_int64
signed 64-bit integer
Abstract definition of a stream.
virtual LT_STATUS initialize(LTIOStreamInf *stream, lt_int64 start, lt_int64 end, bool takeOwnership=false)
Initializes the stream.
virtual lt_uint32 read(lt_uint8 *pDest, lt_uint32 numBytes)
Retrieve the specified number of bytes from the data source and place them in pDest.
virtual LT_STATUS getLastError() const
Clone the stream.
virtual bool isEOF()
Indicates whether the stream is at the end of its data or not.
bool m_ownsStream
Clone the stream.
virtual LT_STATUS close()
Closes the stream.
virtual LT_STATUS seek(lt_int64 offset, LTIOSeekDir origin)
Moves the the data access position to origin + offset.
virtual const char * getID() const
Clone the stream.
virtual ~LTIOSubStream()
Destructor.
void cleanup()
cleanup method
virtual lt_int64 tell()
Returns the current data access position as an offset from the start of the data.
bool m_isEOF
Clone the stream.
lt_int64 m_startOffset
Clone the stream.
LTIOSubStream()
Default Constructor.
LTIOStreamInf * m_stream
Clone the stream.
lt_int64 m_endOffset
Clone the stream.
virtual bool isOpen()
Is the stream open?
virtual LT_STATUS open()
Opens the stream.
virtual lt_uint32 write(const lt_uint8 *pSrc, lt_uint32 numBytes)
Store the specified number of bytes in the data source.
virtual LTIOStreamInf * duplicate()
Clone the stream.