Foxit PDF Conversion SDK
|
IFX_BufferRead stream provides an optimized approach to read stream data. Usually, one stream maintains an internal buffer for data access, this buffer can be used directly to caller, and avoids data-copy. More...
Public Member Functions | |
virtual FX_LPCBYTE | GetBlockBuffer ()=0 |
Get internal buffer of block data. More... | |
virtual FX_INT64 | GetBlockOffset ()=0 |
Get the offset of data in internal buffer. More... | |
virtual size_t | GetBlockSize ()=0 |
Get the size of data in internal buffer. More... | |
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 FX_BOOL | ReadNextBlock (FX_BOOL bRestart=false)=0 |
Read the next block in sequential stream. More... | |
virtual void | Release ()=0 |
Called when to release the current instance. More... | |
![]() | |
virtual FX_INT64 | SetPosition (FX_INT64 pos) |
Set the current file accessing position. More... | |
IFX_BufferRead stream provides an optimized approach to read stream data. Usually, one stream maintains an internal buffer for data access, this buffer can be used directly to caller, and avoids data-copy.
|
pure virtual |
Get internal buffer of block data.
|
pure virtual |
Get the offset of data in internal buffer.
This offset starts from the beginning of stream.
|
pure virtual |
Get the size of data in internal buffer.
|
pure virtual |
Get the current reading position in stream.
Implements IFX_StreamRead.
|
pure virtual |
Determine whether reach the end of stream.
Implements IFX_StreamRead.
|
pure virtual |
Read data block from sequential stream.
[in,out] | buffer | buffer to store data. |
[in] | size | total size of buffer, in bytes. |
Implements IFX_StreamRead.
Read the next block in sequential stream.
[in] | bRestart | Indicates to read data from the beginning of stream. Default value: false. |
|
pure virtual |