Foxit PDF SDK

Public Member Functions | List of all members
IFX_StreamWrite Class Referenceabstract
FXCRT

Stream writing interface. More...

Inheritance diagram for IFX_StreamWrite:

## Public Member Functions
virtual FX_BOOL | Flush ()
| Flush stream data. More...
virtual void | Release ()=0
| Called when to release everything.
virtual FX_BOOL | WriteBlock (const void *pData, size_t size)=0
| Write a block data. More...

## Detailed Description

Stream writing interface.

## Member Function Documentation

## ◆ Flush()

virtual FX_BOOL IFX_StreamWrite::Flush | ( |  | ) |
| inline virtual

Flush stream data.

Returns
  true means success, while false means failure.

Reimplemented in CFX_CachedFileRead, IFX_ChunkFileStream, IFX_FileStream, and IFX_FileWrite.

## ◆ WriteBlock()

virtual FX_BOOL IFX_StreamWrite::WriteBlock | ( | const void * | pData,
|  | size_t | size
| ) |  |
| pure virtual

Write a block data.

Parameters

  [in] | pData | The block data.
  [in] | size | The length in bytes of the block data.

Returns
  true means success, while false means failure.

Implemented in IFX_ChunkFileStream, IFX_FileStream, and IFX_FileWrite.