File reading interface.
More...
|
virtual long | GetSize () |
| Get total size of the file. More...
|
|
virtual bool | ReadBlock (global::System.IntPtr buffer, long offset, uint size) |
| Read a data block from the file. More...
|
|
virtual void | Release () |
| Called when to release everything. More...
|
|
long foxit.common.fxcrt.FileReaderCallback.GetSize |
( |
| ) |
|
|
inlinevirtual |
Get total size of the file.
- Returns
- File size, in bytes. Implementation can return 0 for any error.
bool foxit.common.fxcrt.FileReaderCallback.ReadBlock |
( |
global::System.IntPtr |
buffer, |
|
|
long |
offset, |
|
|
uint |
size |
|
) |
| |
|
inlinevirtual |
Read a data block from the file.
- Parameters
-
[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. |
- Returns
- true means success, and false means failure.
void foxit.common.fxcrt.FileReaderCallback.Release |
( |
| ) |
|
|
inlinevirtual |
Called when to release everything.
- Returns
- None.