|
Foxit PDF Conversion SDK
|
Public Member Functions | |
| CFX_FileBufferArchive (FX_STRSIZE size=32768, IFX_Allocator *pAllocator=0) | |
| A constructor with size and allocator. More... | |
| ~CFX_FileBufferArchive () | |
| The destructor. | |
| FX_BOOL | AttachFile (IFX_StreamWrite *pFile, FX_BOOL bTakeover=false) |
| Attach file. More... | |
| FX_BOOL | AttachFile (FX_LPCWSTR filename) |
| Attach file. More... | |
| FX_BOOL | AttachFile (FX_LPCSTR filename) |
| Attach file. More... | |
| virtual void | Clear () |
| Clear buffer. More... | |
| FX_BOOL | Flush () |
| Flush internal buffer. More... | |
Public Member Functions inherited from IFX_BufferArchive | |
| IFX_BufferArchive (FX_STRSIZE size, IFX_Allocator *pAllocator=0) | |
| Construct with buffer size and special allocator. More... | |
| virtual | ~IFX_BufferArchive () |
| The destructor. | |
| FX_INT32 | AppendBlock (const void *pBuf, size_t size) |
| Append a binary buffer block. More... | |
| FX_INT32 | AppendByte (FX_BYTE byte) |
| Append a single byte. More... | |
| FX_INT32 | AppendDWord (FX_DWORD i) |
| Append a FX_DWORD value. More... | |
| FX_INT32 | AppendInt64 (FX_INT64 i) |
| Append a FX_INT64 value. More... | |
| FX_INT32 | AppendString (FX_BSTR lpsz) |
| Append a byte string value. More... | |
| FX_BOOL | Flush () |
| Flush internal buffer of the file. More... | |
The class represents file buffer archive.
| CFX_FileBufferArchive::CFX_FileBufferArchive | ( | FX_STRSIZE | size = 32768, |
| IFX_Allocator * | pAllocator = 0 |
||
| ) |
A constructor with size and allocator.
| [in] | size | The size buffer. Default value: 32768 |
| [in] | pAllocator | An allocator. Default value: NULL. |
| FX_BOOL CFX_FileBufferArchive::AttachFile | ( | IFX_StreamWrite * | pFile, |
| FX_BOOL | bTakeover = false |
||
| ) |
Attach file.
| [in] | pFile | A pointer to file stream. |
| [in] | bTakeover | A boolean value to decide whether take over the file. Default value: NULL. |
| FX_BOOL CFX_FileBufferArchive::AttachFile | ( | FX_LPCWSTR | filename | ) |
Attach file.
| [in] | filename | unicode file name. Available only for platforms supporting CRT file access (fopen, ...). |
Attach file.
| [in] | filename | unicode file name. Available only for platforms supporting CRT file access (fopen, ...). |
|
virtual |
| FX_BOOL CFX_FileBufferArchive::Flush | ( | ) |
Flush internal buffer.