Foxit PDF RDK

Public Member Functions | List of all members
WriterCallback Class Reference
Inheritance diagram for WriterCallback:

## Public Member Functions
| Flush ()
| Flush internal buffer of the file. More...
| GetSize ()
| Get total size of the file. More...
| Release ()
| Called when to release everything.
| WriteBlock (pData, offset, size)
| Write a block data. More...
Public Member Functions inherited from NativeObjectWrapper
| constructor (r)
| GetPointerAsNumber ()

## Detailed Description

Examples
  /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

## Member Function Documentation

## ◆ Flush()

WriterCallback.Flush | ( |  | ) |

Flush internal buffer of the file.

Returns
  true means success, while false means failure.

## ◆ GetSize()

WriterCallback.GetSize | ( |  | ) |

Get total size of the file.

Returns
  File size, in bytes. Implementation can return 0 for any error.

## ◆ WriteBlock()

WriterCallback.WriteBlock | ( | pData | ,
|  | offset | ,
|  | size |
| ) |  |

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.