8 #ifndef LT_IO_BUFFERED_STREAM_H
9 #define LT_IO_BUFFERED_STREAM_H
13 LT_BEGIN_LIZARDTECH_NAMESPACE
16 class LTIOBufPageCache;
41 const char* tempDir = 0L);
54 virtual const char*
getID()
const;
57 const LTIOBufPage* getPage(
lt_uint64 pageIndex );
71 LT_END_LIZARDTECH_NAMESPACE
LTIOSeekDir
Stream seek directions.
lt_uint32 LT_STATUS
An integral status code.
unsigned long long int lt_uint64
unsigned 64-bit integer
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
Stream which wraps an array of bytes in memory.
virtual bool isEOF()
Test for end-of-stream.
virtual LT_STATUS getLastError() const
Get status code of last error event.
virtual const char * getID() const
Get a URI describing the stream object.
virtual LT_STATUS close()
Closes the stream.
virtual LTIOStreamInf * duplicate()
Clone the stream.
virtual lt_uint32 write(const lt_uint8 *pSrc, lt_uint32 numBytes)
Store the specified number of bytes in the data source.
virtual LT_STATUS open()
Opens the stream.
virtual LT_STATUS seek(lt_int64 offset, LTIOSeekDir origin)
Moves the data access position to origin + offset.
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 bool isOpen()
Test for stream openness.
virtual lt_int64 tell()
Returns the current data access position as an offset from the start of the data.
virtual LT_STATUS initialize(LTIOStreamInf *src, lt_uint32 pageSize=1024, lt_uint32 numPages=10, const char *tempDir=0L)
Initializes the stream.
virtual ~LTIOBufferedStream()
LTIOBufPageCache * m_buffer
Abstract definition of a stream.