Foxit PDF SDK

Public Member Functions | List of all members
foxit.common.fxcrt.FileWriterCallback Class Reference

File writing interface. More...

Inherits SystemIDisposable.

## Public Member Functions
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...

## Detailed Description

File writing interface.

## Member Function Documentation

## ◆ Flush()

bool foxit.common.fxcrt.FileWriterCallback.Flush | ( |  | ) |
| inline virtual

Flush internal buffer of the file.

Returns
  true means success, while false means failure.

## ◆ GetSize()

long foxit.common.fxcrt.FileWriterCallback.GetSize | ( |  | ) |
| inline virtual

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
| ) |  |
| inline virtual

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.