Foxit PDF Conversion SDK
|
Stream reading interface. More...
Public Member Functions | |
virtual FX_INT64 | GetPosition ()=0 |
Get the current reading position in stream. More... | |
virtual FX_BOOL | IsEOF ()=0 |
Determine whether reach the end of stream. More... | |
virtual size_t | ReadBlock (void *buffer, size_t size)=0 |
Read data block from sequential stream. More... | |
virtual void | Release ()=0 |
Called when to release everything. More... | |
virtual FX_INT64 | SetPosition (FX_INT64 pos) |
Set the current file accessing position. More... | |
Stream reading interface.
|
pure virtual |
Get the current reading position in stream.
Implemented in CFX_CachedFileRead, IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, and IFX_FileRead.
|
pure virtual |
Determine whether reach the end of stream.
Implemented in CFX_CachedFileRead, IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, and IFX_FileRead.
|
pure virtual |
Read data block from sequential stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Implemented in CFX_CachedFileRead, IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, and IFX_FileRead.
|
pure virtual |
Called when to release everything.
Implemented in CFX_CachedFileRead, IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, and IFX_FileRead.
Set the current file accessing position.
[in] | pos | The new accessing position. |
Reimplemented in IFX_FileRead.