Foxit PDF SDK

Public Member Functions | List of all members
IFX_BufferRead Class Referenceabstract
FXCRT

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...

Inheritance diagram for IFX_BufferRead:

## 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...
Public Member Functions inherited from IFX_StreamRead
virtual FX_INT64 | SetPosition (FX_INT64 pos)
| Set the current file accessing position. More...

## Detailed Description

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.