File writing interface.
More...
Inherits SystemIDisposable.
|
virtual bool | Flush () |
| Flush internal buffer of the file. More...
|
|
virtual long | GetSize () |
| Get total size of the file. More...
|
|
virtual void | Release () |
| Called when to release everything.
|
|
virtual bool | WriteBlock (global::System.IntPtr pData, long offset, uint size) |
| Write a block data. More...
|
|
◆ Flush()
bool foxit.common.fxcrt.FileWriterCallback.Flush |
( |
| ) |
|
|
inlinevirtual |
Flush internal buffer of the file.
- Returns
- true means success, while false means failure.
◆ GetSize()
long foxit.common.fxcrt.FileWriterCallback.GetSize |
( |
| ) |
|
|
inlinevirtual |
Get total size of the file.
- Returns
- File size, in bytes. Implementation can return 0 for any error.
◆ WriteBlock()
bool foxit.common.fxcrt.FileWriterCallback.WriteBlock |
( |
global::System.IntPtr |
pData, |
|
|
long |
offset, |
|
|
uint |
size |
|
) |
| |
|
inlinevirtual |
Write a block data.
- Parameters
-
[in] | pData | The block data. |
[in] | offset | Byte offset from beginning of the file |
[in] | size | The length in bytes of the block data. |
- Returns
- true means success, while false means failure.