Foxit PDF Conversion SDK
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 ( )
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]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.