File reading interface. More...
Public Member Functions | |
virtual void | ClearRange () |
Clear accessing range set by function IFX_FileRead::SetRange. More... | |
virtual FX_INT64 | GetPosition () |
Get the current reading position in stream. More... | |
virtual FX_INT64 | GetSize ()=0 |
Get total size of the file. More... | |
virtual FX_BOOL | IsEOF () |
Determine whether reach the end of stream. More... | |
virtual FX_BOOL | ReadBlock (void *buffer, FX_INT64 offset, size_t size)=0 |
Read a data block from the file. More... | |
virtual size_t | ReadBlock (void *buffer, size_t size) |
Read data block from stream. More... | |
virtual void | Release ()=0 |
Called when to release everything. More... | |
virtual FX_BOOL | SetRange (FX_INT64 offset, FX_INT64 size) |
Set accessing range. More... | |
File reading interface.
|
inlinevirtual |
Clear accessing range set by function IFX_FileRead::SetRange.
|
inlinevirtual |
Get the current reading position in stream.
Implements IFX_StreamRead.
Reimplemented in CFX_CachedFileRead, and IFX_FileStream.
|
pure virtual |
Get total size of the file.
Implemented in CFX_CachedFileRead, and IFX_FileStream.
|
inlinevirtual |
Determine whether reach the end of stream.
Implements IFX_StreamRead.
Reimplemented in CFX_CachedFileRead, and IFX_FileStream.
|
pure virtual |
Read a data block from the file.
[in,out] | buffer | Pointer to a buffer receiving read data |
[in] | offset | Byte offset from beginning of the file |
[in] | size | Number of bytes for the block. |
Implemented in CFX_CachedFileRead, and IFX_FileStream.
|
inlinevirtual |
Read data block from stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Implements IFX_StreamRead.
Reimplemented in CFX_CachedFileRead, and IFX_FileStream.
|
pure virtual |
Called when to release everything.
Implements IFX_StreamRead.
Implemented in CFX_CachedFileRead, and IFX_FileStream.
|
inlinevirtual |
Set accessing range.
[in] | offset | |
[in] | size |