Foxit PDF SDK
FSDK.FileWriterCallback Class Reference

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...
 

Member Function Documentation

◆ Flush()

FSDK.FileWriterCallback.Flush ( )

Flush internal buffer of the file.

Returns
true means success, while false means failure.

◆ GetSize()

FSDK.FileWriterCallback.GetSize ( )

Get total size of the file.

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

◆ WriteBlock()

FSDK.FileWriterCallback.WriteBlock ( pData  ,
offset  ,
size   
)

Write a block data.

Parameters
[in]pDataThe block data.
[in]offsetByte offset from beginning of the file
[in]sizeThe length in bytes of the block data.
Returns
true means success, while false means failure.