Foxit PDF SDK
|
Inherits CFX_Object.
Public Member Functions | |
CFX_ArchiveSaver (IFX_Allocator *pAllocator=0) | |
Construct with allocator. More... | |
FX_LPCBYTE | GetBuffer () const |
Get the constant byte pointer to the saved data. More... | |
FX_INTPTR | GetLength () const |
Get the length of saved data. More... | |
CFX_ArchiveSaver & | operator<< (FX_BYTE i) |
Left shifts(<<) operator overload. Serialize a single byte. More... | |
CFX_ArchiveSaver & | operator<< (FX_BOOL i) |
Left shifts(<<) operator overload. Serialize a bool. More... | |
CFX_ArchiveSaver & | operator<< (int i) |
Left shifts(<<) operator overload. Serialize a integer. More... | |
CFX_ArchiveSaver & | operator<< (FX_DWORD i) |
Left shifts(<<) operator overload. Serialize a FX_DWORD value. More... | |
CFX_ArchiveSaver & | operator<< (FX_INT64 i) |
Left shifts(<<) operator overload. Serialize a FX_INT64 value. More... | |
CFX_ArchiveSaver & | operator<< (FX_FLOAT i) |
Left shifts(<<) operator overload. Serialize a floating-point. More... | |
CFX_ArchiveSaver & | operator<< (double i) |
Left shifts(<<) operator overload. Serialize a double value. More... | |
CFX_ArchiveSaver & | operator<< (FX_BSTR bstr) |
Left shifts(<<) operator overload. Serialize a non-buffered byte string. More... | |
CFX_ArchiveSaver & | operator<< (FX_LPCSTR bstr) |
Left shifts(<<) operator overload. Serialize a zero-terminated string. More... | |
CFX_ArchiveSaver & | operator<< (const CFX_ByteString &bstr) |
Left shifts(<<) operator overload. Serialize a byte string. More... | |
CFX_ArchiveSaver & | operator<< (FX_LPCWSTR bstr) |
Left shifts(<<) operator overload. Serialize a zero-terminated wide character string. More... | |
CFX_ArchiveSaver & | operator<< (const CFX_WideString &wstr) |
Left shifts(<<) operator overload. Serialize a wide string. More... | |
void | SetStream (IFX_FileStream *pStream) |
Set the attached stream. More... | |
void | Write (const void *pData, FX_STRSIZE dwSize) |
Serialize a memory block. More... | |
Binary archive using memory based buffer or stream.
Providing cross-platform data serialization and de-serialization service. Data structure is NOT stored in the archive, so the de-serialization must use exactly same structure in when serialization.
|
inline |
Construct with allocator.
[in] | pAllocator | Allocator used in this class. NULL to use default allocator. Default value: NULL. |
|
inline |
Get the constant byte pointer to the saved data.
|
inline |
Get the length of saved data.
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_BYTE | i | ) |
Left shifts(<<) operator overload. Serialize a single byte.
[in] | i | The input byte. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_BOOL | i | ) |
Left shifts(<<) operator overload. Serialize a bool.
[in] | i | The input bool. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | int | i | ) |
Left shifts(<<) operator overload. Serialize a integer.
[in] | i | The input integer. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_DWORD | i | ) |
Left shifts(<<) operator overload. Serialize a FX_DWORD value.
[in] | i | The input FX_DWORD value. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_INT64 | i | ) |
Left shifts(<<) operator overload. Serialize a FX_INT64 value.
[in] | i | The input FX_INT64 value. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_FLOAT | i | ) |
Left shifts(<<) operator overload. Serialize a floating-point.
[in] | i | The input floating-point. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | double | i | ) |
Left shifts(<<) operator overload. Serialize a double value.
[in] | i | The input double value. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_BSTR | bstr | ) |
Left shifts(<<) operator overload. Serialize a non-buffered byte string.
[in] | bstr | The input non-buffered byte string. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_LPCSTR | bstr | ) |
Left shifts(<<) operator overload. Serialize a zero-terminated string.
[in] | bstr | The input string. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | const CFX_ByteString & | bstr | ) |
Left shifts(<<) operator overload. Serialize a byte string.
[in] | bstr | The input byte string. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | FX_LPCWSTR | bstr | ) |
Left shifts(<<) operator overload. Serialize a zero-terminated wide character string.
Wide strings are stored in UTF-16LE encoding.
[in] | bstr | The input zero-terminated wide character string. |
CFX_ArchiveSaver& CFX_ArchiveSaver::operator<< | ( | const CFX_WideString & | wstr | ) |
Left shifts(<<) operator overload. Serialize a wide string.
Wide strings are stored in UTF-16LE encoding.
[in] | wstr | The input wide string. |
|
inline |
Set the attached stream.
[in] | pStream | The stream to the saved data. |
void CFX_ArchiveSaver::Write | ( | const void * | pData, |
FX_STRSIZE | dwSize | ||
) |
Serialize a memory block.
[in] | pData | The pointer to a memory block. |
[in] | dwSize | The size in bytes of the memory block. |