File reading interface.
More...
Inherits SystemIDisposable.
|
| 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...
|
| |
◆ GetSize()
| 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.
◆ ReadBlock()
| 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.
◆ Release()
| void foxit.common.fxcrt.FileReaderCallback.Release |
( |
| ) |
|
|
inlinevirtual |
Called when to release everything.
- Returns
- None.