Foxit PDF SDK
|
Classes | |
struct | FX_HFILE |
File accessing handle. More... | |
struct | FX_HTHREAD |
Type definition of mutex handle. More... | |
struct | FXMEM_FoxitMgr |
Foxit memory manager. More... | |
class | CFX_ArchiveLoader |
class | CFX_ArchiveSaver |
class | CFX_ArrayTemplate< TYPE > |
class | CFX_ATemplate< baseType > |
class | CFX_AutoRestorer< T > |
class | CFX_BaseSegmentedArray |
class | CFX_BasicArray |
class | CFX_BinaryBuf |
Dynamic binary buffers designed for more efficient appending. More... | |
class | CFX_BitStream |
class | CFX_BitWriter |
class | CFX_ByteString |
BYTE STRING CLASS. More... | |
class | CFX_ByteStringC |
CONSTANT BYTE STRING CLASS. More... | |
class | CFX_ByteTextBuf |
class | CFX_CachedFileRead |
Cached file read interface. More... | |
struct | CFX_CharMap |
class | CFX_CMapByteStringToPtr |
class | CFX_CMapDWordToDWord |
class | CFX_CountRef< ObjClass > |
class | CFX_DataFilter |
class | CFX_ETemplate< baseType > |
class | CFX_ExceptionErrorContext |
class | CFX_FileBufferArchive |
class | CFX_FixedBufGrow< DataType, FixedSize > |
class | CFX_FloatRect |
class | CFX_JmpStack |
class | CFX_ListArrayTemplate< T1, T2 > |
class | CFX_MapByteStringToPtr |
class | CFX_MapPtrTemplate< KeyType, ValueType > |
class | CFX_MapPtrToPtr |
class | CFX_Matrix |
class | CFX_ObjectArray< ObjectClass > |
class | CFX_ObjectStack< TYPE > |
class | CFX_PrivateData |
class | CFX_PRLTemplate< baseType > |
class | CFX_PSVTemplate< BaseType > |
class | CFX_PtrList |
class | CFX_RRTemplate< baseType > |
class | CFX_RTemplate< baseType > |
class | CFX_RWLock |
Under non-threading mode, defines as empty implementation. More... | |
class | CFX_SegmentedArray< ElementType > |
class | CFX_SmartPointer< T > |
class | CFX_SortListArray< unit > |
class | CFX_SpinLock |
Under non-threading mode, defines as empty implementation. More... | |
class | CFX_Stack< TYPE > |
class | CFX_Stack< CFX_ByteString > |
class | CFX_StringBufBase |
A fixed string buffer holding up to certain number of characters. More... | |
class | CFX_StringBufTemplate< limit > |
A fixed string buffer template. More... | |
struct | CFX_StringData |
This class represents the data of a byte string object. More... | |
struct | CFX_StringDataW |
This class represents the data of a wide string object. More... | |
class | CFX_TempBuf< DataType > |
class | CFX_UTF8Decoder |
class | CFX_UTF8Encoder |
class | CFX_VTemplate< baseType > |
class | CFX_WideString |
WIDE STRING CLASS. More... | |
class | CFX_WideStringC |
CONSTANT WIDE STRING CLASS. More... | |
class | CFX_WideTextBuf |
struct | FX_MEMCONFIG |
Structure of fixed memory configuration. More... | |
struct | FX_PRIVATEDATA |
struct | FX_RECT |
struct | FX_SMALL_RECT |
struct | FX_SYSTEMTIME |
Structure of system time. More... | |
struct | FX_THREADHANDLER |
Thread handler for application extension. More... | |
struct | FXCRT_DATETIMEZONE |
Structure for date and time. More... | |
struct | FXMEM_Debugger |
Memory debugger interface. All functions must be implemented. More... | |
struct | FXMEM_SystemMgr |
System level memory manager. Application can implement their own system memory manager. More... | |
struct | FXMEM_SystemMgr2 |
Fixed memory manager. More... | |
struct | IFX_Allocator |
Foxit allocator interface. More... | |
class | IFX_BufferArchive |
class | IFX_BufferRead |
IFX_BufferRead stream provides an optimized approach to read stream data. Usually, one stream maintains an internal buffer for data access, this buffer can be used directly to caller, and avoids data-copy. More... | |
class | IFX_ChunkFileStream |
Chunk-based File stream interface, reading & writing. More... | |
class | IFX_FileAccess |
File access interface, open file. More... | |
class | IFX_FileRead |
File reading interface. More... | |
class | IFX_FileStream |
File stream interface, reading & writing. More... | |
class | IFX_FileWrite |
File writing interface. More... | |
class | IFX_MemoryStream |
Memory stream interface. More... | |
class | IFX_Pause |
class | IFX_StreamRead |
Stream reading interface. More... | |
class | IFX_StreamWrite |
Stream writing interface. More... | |
class | IFX_Unknown |
Macros | |
#define | _FX_LARGEFILE_USED_ |
Preprocessor for large file support. | |
#define | FX_BSTRC(str) CFX_ByteStringC(str, sizeof str-1) |
All application should use the following macro when specifying a string constant. "str" must be a character string constant. More... | |
#define | FX_FILESIZE FX_INT64 |
Support large file directly. | |
#define | FX_IsOdd(a) ((a) & 1) |
Judge whether an integer is odd or even. | |
#define | FXBSTR_ID(c1, c2, c3, c4) ((c1 << 24) | (c2 << 16) | (c3 << 8) | (c4)) |
Construct a ID from four integer values. | |
#define | FXFORMAT_CAPITAL 4 |
For formating integer: using with FXFORMAT_HEX to produce capital hexadecimal letters. | |
#define | FXFORMAT_HEX 2 |
For formating integer: using hexadecimal format. | |
#define | FXFORMAT_SIGNED 1 |
For formating integer: the value is signed. | |
#define | FXMEM_DISCARDABLE 4 |
Flag for allocate discardable memory. | |
#define | FXMEM_MOVABLE 2 |
Flag for allocate movable memory. | |
#define | FXMEM_NONLEAVE 1 |
Flag for no calling OOM-handler when memory allocation failed. | |
Typedefs | |
typedef CFX_ATemplate< FX_INT32 > | CFX_Arc |
Type definition for arc class for integer. | |
typedef CFX_ATemplate< FX_FLOAT > | CFX_ArcF |
Type definition for arc class for float. | |
typedef CFX_ArrayTemplate< FX_BYTE > | CFX_ByteArray |
Type definition for a byte array type. | |
typedef CFX_ObjectArray< CFX_ByteString > | CFX_ByteStringArray |
Type definition for a CFX_ByteString array type. | |
typedef CFX_ArrayTemplate< FX_DWORD > | CFX_DWordArray |
Type definition for a double-word array type. | |
typedef CFX_ListArrayTemplate< CFX_SortListArray< sizeof(FX_DWORD)>, FX_DWORD > | CFX_DWordListArray |
Type definition for FX_DWORD list array. | |
typedef CFX_ETemplate< FX_INT32 > | CFX_Ellipse |
Type definition for ellipse class for integer. | |
typedef CFX_ETemplate< FX_FLOAT > | CFX_EllipseF |
Type definition for ellipse class for float. | |
typedef CFX_ArrayTemplate< FX_INT64 > | CFX_FileSizeArray |
Type definition for file size array type. | |
typedef CFX_ListArrayTemplate< CFX_SortListArray< sizeof(FX_INT64)>, FX_INT64 > | CFX_FileSizeListArray |
Type definition for file size list array. | |
typedef CFX_ArrayTemplate< FX_FLOAT > | CFX_FloatArray |
Type definition for float array. | |
typedef CFX_ArrayTemplate< FX_INT32 > | CFX_Int32Array |
Type definition for INT32 array. | |
typedef CFX_PRLTemplate< FX_INT32 > | CFX_Parallelogram |
Type definition for parallelogram class for integer. | |
typedef CFX_PRLTemplate< FX_FLOAT > | CFX_ParallelogramF |
Type definition for parallelogram class for float. | |
typedef CFX_PSVTemplate< FX_INT32 > | CFX_Point |
Type definition for point class for integer. | |
typedef CFX_PSVTemplate< FX_FLOAT > | CFX_PointF |
Type definition for point class for float. | |
typedef CFX_ArrayTemplate< CFX_Point > | CFX_Points |
Type definition for integer point array. | |
typedef CFX_ArrayTemplate< CFX_PointF > | CFX_PointsF |
Type definition for float point array. | |
typedef CFX_ArrayTemplate< void * > | CFX_PtrArray |
Type definition for: a typeless pointer array type. | |
typedef CFX_RTemplate< FX_INT32 > | CFX_Rect |
Type definition for rectangle class for integer. | |
typedef CFX_ArrayTemplate< CFX_FloatRect > | CFX_RectArray |
Rectangle array. | |
typedef CFX_RTemplate< FX_FLOAT > | CFX_RectF |
Type definition for rectangle class for float. | |
typedef CFX_ArrayTemplate< CFX_RectF > | CFX_RectFArray |
Type definition for rect array. | |
typedef CFX_RRTemplate< FX_INT32 > | CFX_RoundRect |
Type definition for round-corner rectangle class for integer. | |
typedef CFX_RRTemplate< FX_FLOAT > | CFX_RoundRectF |
Type definition for round-corner rectangle class for float. | |
typedef CFX_PSVTemplate< FX_INT32 > | CFX_Size |
Type definition for size class for integer. | |
typedef CFX_PSVTemplate< FX_FLOAT > | CFX_SizeF |
Type definition for size class for float. | |
typedef CFX_VTemplate< FX_INT32 > | CFX_Vector |
Vector class for integer. | |
typedef CFX_VTemplate< FX_FLOAT > | CFX_VectorF |
Vector class for float. | |
typedef CFX_ArrayTemplate< FX_WCHAR > | CFX_WCHARArray |
Type definition for FX_WHAR array. | |
typedef CFX_ObjectArray< CFX_WideString > | CFX_WideStringArray |
Type definition for a CFX_WideString array type. | |
typedef CFX_ArrayTemplate< FX_WORD > | CFX_WordArray |
Type definition for a word array type. | |
typedef const CFX_PSVTemplate< FX_INT32 > * | FX_LPCPOINT |
Type definition for constant pointer to integer point. | |
typedef const CFX_PSVTemplate< FX_FLOAT > * | FX_LPCPOINTF |
Type definition for constant pointer to float point. | |
typedef const CFX_RTemplate< FX_INT32 > * | FX_LPCRECT |
Type definition for constant pointer to integer rectangle. | |
typedef const CFX_RTemplate< FX_FLOAT > * | FX_LPCRECTF |
Type definition for constant pointer to float rectangle. | |
typedef CFX_PSVTemplate< FX_INT32 > * | FX_LPPOINT |
Type definition for pointer to integer point. | |
typedef CFX_PSVTemplate< FX_FLOAT > * | FX_LPPOINTF |
Type definition for pointer to float point. | |
typedef CFX_RTemplate< FX_INT32 > * | FX_LPRECT |
Type definition for pointer to integer rectangle. | |
typedef CFX_RTemplate< FX_FLOAT > * | FX_LPRECTF |
Type definition for pointer to float rectangle. | |
typedef int | FX_STRSIZE |
String size is limited to 2^31-1. | |
typedef void(* | PD_CALLBACK_FREEDATA) (FX_LPVOID pData) |
Enumerations | |
enum | FX_ProgressiveStatus { Ready, ToBeContinued, Found, NotFound, Failed, Done } |
Enumeration for progressive status. More... | |
Functions | |
CFX_ByteString::CFX_ByteString () | |
Construct a null byte string. | |
CFX_ByteString::CFX_ByteString (char ch) | |
Construct from a single character. More... | |
CFX_ByteString::CFX_ByteString (const CFX_ByteString &str) | |
Copy constructor. More... | |
CFX_ByteString::CFX_ByteString (FX_BSTR bstrc) | |
Construct from a constant ref to a CFX_ByteStringC object. More... | |
CFX_ByteString::CFX_ByteString (FX_BSTR bstrc1, FX_BSTR bstrc2) | |
Concatenate constructor. More... | |
CFX_ByteString::CFX_ByteString (FX_LPCBYTE ptr, FX_STRSIZE len) | |
Construct from a byte string. More... | |
CFX_ByteString::CFX_ByteString (FX_LPCSTR ptr, FX_STRSIZE len=-1) | |
Construct from a character string. More... | |
CFX_ByteStringC::CFX_ByteStringC () | |
Constructs a null constant string. | |
CFX_ByteStringC::CFX_ByteStringC (const CFX_ByteString &src) | |
Construct from a byte string. More... | |
CFX_ByteStringC::CFX_ByteStringC (const CFX_ByteStringC &src) | |
Copy constructor. More... | |
CFX_ByteStringC::CFX_ByteStringC (const FX_CHAR &ch) | |
Construct from a single character. More... | |
CFX_ByteStringC::CFX_ByteStringC (FX_LPCBYTE ptr, FX_STRSIZE size) | |
Constructs from a byte string. More... | |
CFX_ByteStringC::CFX_ByteStringC (FX_LPCSTR ptr) | |
Construct from a character string. More... | |
CFX_ByteStringC::CFX_ByteStringC (FX_LPCSTR ptr, FX_STRSIZE len) | |
Construct from a character string. More... | |
CFX_CachedFileRead::CFX_CachedFileRead () | |
Constructor. | |
CFX_ChunkFileStreamsManager::CFX_ChunkFileStreamsManager (IFX_FileStream *pFileStream, size_t nChunkSize=1024) | |
Construct the Chunk-Based file stream manager. More... | |
CFX_StringBufBase::CFX_StringBufBase (FX_STRSIZE limit) | |
A Constructor. More... | |
CFX_StringBufTemplate< limit >::CFX_StringBufTemplate () | |
A constructor. | |
CFX_WideString::CFX_WideString () | |
Construct a null wide string. | |
CFX_WideString::CFX_WideString (const CFX_WideString &str) | |
Copy constructor. More... | |
CFX_WideString::CFX_WideString (const CFX_WideStringC &str) | |
Construct from a constant ref to a CFX_WideStringC object. More... | |
CFX_WideString::CFX_WideString (const CFX_WideStringC &str1, const CFX_WideStringC &str2) | |
Concatenate constructor. More... | |
CFX_WideString::CFX_WideString (FX_LPCWSTR ptr, FX_STRSIZE len=-1) | |
Construct from a wide character string. More... | |
CFX_WideString::CFX_WideString (FX_WCHAR ch) | |
Construct from a single wide character. More... | |
CFX_WideStringC::CFX_WideStringC () | |
Constructs a null constant string. | |
CFX_WideStringC::CFX_WideStringC (const CFX_WideStringC &src) | |
Copy constructor. More... | |
CFX_WideStringC::CFX_WideStringC (FX_LPCWSTR ptr) | |
Construct from a character string. More... | |
CFX_WideStringC::CFX_WideStringC (FX_LPCWSTR ptr, FX_STRSIZE len) | |
Construct from a character string. More... | |
CFX_WideStringC::CFX_WideStringC (FX_WCHAR &ch) | |
Construct from a single character. More... | |
CFX_ByteString::~CFX_ByteString () | |
virtual | CFX_CachedFileRead::~CFX_CachedFileRead () |
Destructor. | |
CFX_ChunkFileStreamsManager::~CFX_ChunkFileStreamsManager () | |
Destructor. More... | |
CFX_WideString::~CFX_WideString () | |
The Destructor. | |
void | CFX_StringBufBase::Append (FX_BSTR str) |
Append a non-buffered byte string. More... | |
void | CFX_StringBufBase::Append (int i, FX_DWORD flags=0) |
Append an integer. See FXFORMAT_xxx for flags. More... | |
virtual void | IFX_MemoryStream::AttachBuffer (FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver=false)=0 |
Attach a memory buffer. More... | |
FX_BOOL | CFX_CachedFileRead::AttachFile (IFX_FileRead *pFile, FX_BOOL bTakeOver) |
Attach a file read. More... | |
virtual void | IFX_FileRead::ClearRange () |
Clear accessing range set by function IFX_FileRead::SetRange. More... | |
int | CFX_WideString::Compare (const CFX_WideString &str) const |
Compare the the string with another. Case-sensitive. More... | |
int | CFX_ByteString::Compare (FX_BSTR str) const |
Compare the the string with another. Case-sensitive. More... | |
int | CFX_WideString::Compare (FX_LPCWSTR str) const |
Compare current string with a wide character string. Case-sensitive. More... | |
int | CFX_WideString::CompareNoCase (FX_LPCWSTR str) const |
Compare the the string with a wide character string. No case-insensitive. More... | |
void | CFX_WideString::ConvertFrom (const CFX_ByteString &str, CFX_CharMap *pCharMap=NULL) |
Load MBCS data into this wide string, using specified character mapper. More... | |
void | CFX_ByteString::ConvertFrom (const CFX_WideString &str, CFX_CharMap *pCharMap=NULL) |
Load unicode data into this byte string, using specified character mapper. If no character mapper specified, the system default mapper will be used. More... | |
void | CFX_StringBufBase::Copy (FX_BSTR str) |
Copy from a non-buffered byte string. More... | |
IFX_ChunkFileStream * | CFX_ChunkFileStreamsManager::CreateChunkFileStream () |
Create a Chunk-Based file stream. More... | |
virtual IFX_FileStream * | IFX_FileAccess::CreateFileStream (FX_DWORD dwModes)=0 |
Create IFX_FileStream to operate file. More... | |
FX_STRSIZE | CFX_ByteString::Delete (FX_STRSIZE index, FX_STRSIZE count=1) |
Delete one or more characters starting from specific position. More... | |
FX_STRSIZE | CFX_WideString::Delete (FX_STRSIZE index, FX_STRSIZE count=1) |
Delete one or more wide characters starting from specific position. More... | |
virtual void | IFX_MemoryStream::DetachBuffer ()=0 |
Detach the current memory buffer. More... | |
void | CFX_ByteString::Empty () |
Set this string to be empty. More... | |
void | CFX_StringBufBase::Empty () |
Set this string to be empty. More... | |
void | CFX_WideString::Empty () |
Set this string to be empty. More... | |
bool | CFX_WideString::Equal (const CFX_WideStringC &str) const |
Check if current string is equal to another. More... | |
bool | CFX_ByteString::Equal (FX_BSTR str) const |
Check if current string is equal to another one. Case-sensitive. More... | |
bool | CFX_ByteString::EqualNoCase (FX_BSTR str) const |
Check if current string is equal to another one, not considering case. More... | |
virtual void | IFX_MemoryStream::EstimateSize (size_t nInitSize, size_t nGrowSize)=0 |
Change initialize size and grow size. More... | |
FX_STRSIZE | CFX_ByteString::Find (FX_BSTR lpszSub, FX_STRSIZE start=0) const |
Find a sub-string, from specific position. Only first occurrence is found. More... | |
FX_STRSIZE | CFX_ByteString::Find (FX_CHAR ch, FX_STRSIZE start=0) const |
Find a character, from specific position. Only first occurrence is found. More... | |
FX_STRSIZE | CFX_WideString::Find (FX_LPCWSTR lpszSub, FX_STRSIZE start=0) const |
Find a sub-string, from specific position. Only first occurrence is found. More... | |
FX_STRSIZE | CFX_WideString::Find (FX_WCHAR ch, FX_STRSIZE start=0) const |
Find a character, from specific position. Only first occurrence is found. More... | |
virtual FX_BOOL | IFX_StreamWrite::Flush () |
Flush stream data. More... | |
virtual FX_BOOL | CFX_CachedFileRead::Flush () |
Flush internal buffer. Unsupported for reading mode, return false directly. | |
virtual FX_BOOL | IFX_FileWrite::Flush ()=0 |
Flush internal buffer of the file. More... | |
virtual FX_BOOL | IFX_FileStream::Flush ()=0 |
Flush internal buffer. More... | |
virtual FX_BOOL | IFX_ChunkFileStream::Flush ()=0 |
Flush internal buffer. More... | |
void | CFX_ByteString::Format (FX_LPCSTR lpszFormat,...) |
Format a number of parameters into this byte string. More... | |
void | CFX_WideString::Format (FX_LPCWSTR lpszFormat,...) |
Format a number of parameters into this wide string. More... | |
static CFX_ByteString | CFX_ByteString::FormatFloat (FX_FLOAT f, int precision=0) |
Convert from floating-point number. More... | |
static CFX_ByteString | CFX_ByteString::FormatInteger (FX_INT32 i, FX_DWORD flags=0) |
Convert from Integer. More... | |
void | CFX_ByteString::FormatV (FX_LPCSTR lpszFormat, va_list argList) |
Format a number of parameters into this byte string, using va_list. More... | |
void | CFX_WideString::FormatV (FX_LPCWSTR lpszFormat, va_list argList) |
Format a number of parameters into this wide string. using va_list. More... | |
static CFX_WideString | CFX_WideString::FromLocal (const char *str, FX_STRSIZE len=-1) |
Create a wide string from system multi-byte charset. More... | |
static CFX_ByteString | CFX_ByteString::FromUnicode (const CFX_WideString &str) |
Create a CFX_ByteString object from a CFX_WideString object. More... | |
static CFX_ByteString | CFX_ByteString::FromUnicode (FX_LPCWSTR ptr, FX_STRSIZE len=-1) |
Create a CFX_ByteString object from a Unicode string. Convert from Unicode to system multi-byte charset. More... | |
static CFX_WideString | CFX_WideString::FromUTF16BE (const unsigned short *str, FX_STRSIZE len=-1) |
Create a wide string from UTF16BE encoded string. More... | |
static CFX_WideString | CFX_WideString::FromUTF16LE (const unsigned short *str, FX_STRSIZE len=-1) |
Create a wide string from UTF16LE encoded string. More... | |
static CFX_WideString | CFX_WideString::FromUTF8 (const char *str, FX_STRSIZE len=-1) |
Create a wide string from UTF-8 string (ASCII string compatible). More... | |
void | FX_CloseFolder (void *handle) |
Close folder handle. More... | |
FX_BOOL | FX_CreateFolder (FX_LPCSTR path) |
Create new folder. More... | |
FX_BOOL | FX_CreateFolder (FX_LPCWSTR path) |
Create new folder. More... | |
CFX_WideString | FX_DecodeURI (const CFX_ByteString &bsURI) |
A simple URI Decode. More... | |
CFX_ByteString | FX_EncodeURI (const CFX_WideString &wsURI) |
A simple URI encode. More... | |
FX_WCHAR | FX_GetFolderSeparator () |
Get folder separator for the system. Most likely it's either /' or '\'. More... | |
FX_BOOL | FX_GetNextFile (void *handle, CFX_ByteString &filename, FX_BOOL &bFolder, FX_LPCSTR absPath=0) |
Read next entry in the folder. More... | |
FX_BOOL | FX_GetNextFile (void *handle, CFX_WideString &filename, FX_BOOL &bFolder, FX_LPCSTR absPath=0) |
Read next entry in the folder. More... | |
FX_BOOL | FX_IsFilePathExist (FX_LPCWSTR path) |
Check if the path exists, including file path and folder path. More... | |
FX_BOOL | FX_IsRectAdjacent (const CFX_FloatRect &rect1, const CFX_FloatRect &rect2, FX_FLOAT alignmentTolerance, FX_FLOAT distanceTolerance, int direction) |
Check if a rectangle is adjacent to the other rectangle in the horizontal or vertical direction. More... | |
void * | FX_OpenFolder (FX_LPCSTR path) |
Open a folder for reading. More... | |
void * | FX_OpenFolder (FX_LPCWSTR path) |
Open a folder for reading. More... | |
CFX_WideString | FX_UrlDecode (const CFX_ByteString &bsUrl) |
A simple URL decode. More... | |
CFX_ByteString | FX_UrlEncode (const CFX_WideString &wsUrl) |
A simple URL encode. More... | |
FXMEM_FoxitMgr * | FXMEM_CreateFixedMgr (void *pMemory, size_t size, FXMEM_SystemMgr2 *pExtender) |
Create a Foxit manager from a pre-allocated, fixed memory buffer. More... | |
FXMEM_FoxitMgr * | FXMEM_CreateFoxitMgr (FXMEM_SystemMgr *pSystemMgr) |
Create a Foxit manager. A system manager must be provided for actual allocation. More... | |
FXMEM_FoxitMgr * | FXMEM_CreateMemoryMgr (size_t size, FX_BOOL extensible) |
Create a fixed memory manager as default implementation. More... | |
FXMEM_FoxitMgr * | FXMEM_CreatePyMgr () |
Create a Python manager. A fast, special-purpose memory allocator for small blocks, to be used on top of a general-purpose malloc – heavily based on previous art. More... | |
void | FXMEM_DestroyFoxitMgr (FXMEM_FoxitMgr *pFoxitMgr) |
Destroy a Foxit manager instance. If the platform supports auto-collection, then all allocated memory blocks will be released. More... | |
size_t | FXMEM_GetBlockSizeInFixedMgr (FXMEM_FoxitMgr *pFoxitMgr, void *ptr) |
Get the size of a memory block to which ptr points. More... | |
FXMEM_FoxitMgr * | FXMEM_GetDefaultMgr () |
Get default memory manager for current module. More... | |
void | FXMEM_ResetSystemMgr () |
Reset Foxit system memory manager for current module. More... | |
void | FXMEM_SetDefaultMgr (FXMEM_FoxitMgr *pFoxitMgr) |
Set default Foxit manager for current compile module (EXE, DLL, etc.). More... | |
int | FXMEM_SetPyConfig (size_t lowByteRange, size_t highByteRange) |
Set configuration of Python memory. More... | |
FX_BYTE | CFX_ByteStringC::GetAt (FX_STRSIZE index) const |
This method retrieves a single byte specified by an index number. More... | |
FX_WCHAR | CFX_WideStringC::GetAt (FX_STRSIZE index) const |
Retrieves a single byte specified by an index number. More... | |
FX_BYTE | CFX_ByteString::GetAt (FX_STRSIZE nIndex) const |
Get a single byte specified by an index number. More... | |
FX_WCHAR | CFX_WideString::GetAt (FX_STRSIZE nIndex) const |
Retrieves a single wide character specified by an index number. More... | |
virtual FX_LPCBYTE | IFX_BufferRead::GetBlockBuffer ()=0 |
Get internal buffer of block data. More... | |
virtual FX_INT64 | IFX_BufferRead::GetBlockOffset ()=0 |
Get the offset of data in internal buffer. More... | |
virtual size_t | IFX_BufferRead::GetBlockSize ()=0 |
Get the size of data in internal buffer. More... | |
virtual FX_LPBYTE | IFX_MemoryStream::GetBuffer () const =0 |
Get the current memory buffer. More... | |
FX_LPSTR | CFX_ByteString::GetBuffer (FX_STRSIZE len) |
Get a buffer with specific number of bytes allocated. More... | |
FX_LPWSTR | CFX_WideString::GetBuffer (FX_STRSIZE len) |
Get a buffer with specific number of characters allocated. More... | |
FX_LPCSTR | CFX_ByteStringC::GetCStr () const |
Get a constant character string pointer to the byte string. More... | |
FX_FLOAT | CFX_WideString::GetFloat () const |
Convert to other data type. More... | |
FX_DWORD | CFX_ByteStringC::GetID (FX_STRSIZE start_pos=0) const |
Get a DWORD identifier of the string, from a particular position. More... | |
FX_DWORD | CFX_ByteString::GetID (FX_STRSIZE start_pos=0) const |
Get a DWORD identifier of the string. See function CFX_ByteStringC::GetID for details. More... | |
int | CFX_WideString::GetInteger () const |
Convert to other data type. More... | |
FX_STRSIZE | CFX_ByteStringC::GetLength () const |
Get the length of the byte string. More... | |
FX_STRSIZE | CFX_ByteString::GetLength () const |
Get number of bytes in the byte string (not counting any possible terminator). More... | |
FX_STRSIZE | CFX_WideStringC::GetLength () const |
Get the length of the byte string. More... | |
FX_STRSIZE | CFX_WideString::GetLength () const |
Get number of characters, not bytes. Trailing zero not counted. More... | |
virtual void | IFX_FileAccess::GetPath (CFX_WideString &wsPath)=0 |
Get current path string. More... | |
virtual FX_INT64 | IFX_FileRead::GetPosition () |
Get the current reading position in stream. More... | |
virtual FX_INT64 | CFX_CachedFileRead::GetPosition () |
Get the current reading position in stream. More... | |
virtual FX_INT64 | IFX_StreamRead::GetPosition ()=0 |
Get the current reading position in stream. More... | |
virtual FX_INT64 | IFX_FileStream::GetPosition ()=0 |
Get the current reading position in stream. More... | |
virtual FX_INT64 | IFX_ChunkFileStream::GetPosition ()=0 |
Get the current reading position in stream. More... | |
virtual FX_INT64 | IFX_BufferRead::GetPosition ()=0 |
Get the current reading position in stream. More... | |
FX_LPCBYTE | CFX_ByteStringC::GetPtr () const |
Get a constant byte string pointer to the byte string. More... | |
FX_CHAR * | CFX_StringBufBase::GetPtr () const |
Get a C-style string pointer to the string buffer. More... | |
FX_LPCWSTR | CFX_WideStringC::GetPtr () const |
Get a constant wide string pointer to the wide string. More... | |
virtual FX_INT64 | CFX_CachedFileRead::GetSize () |
Get total size of the file. More... | |
FX_STRSIZE | CFX_StringBufBase::GetSize () const |
Gets the length of the string. More... | |
virtual FX_INT64 | IFX_FileWrite::GetSize ()=0 |
Get total size of the file. More... | |
virtual FX_INT64 | IFX_FileRead::GetSize ()=0 |
Get total size of the file. More... | |
virtual FX_INT64 | IFX_FileStream::GetSize ()=0 |
Get the current stream size, in bytes. More... | |
virtual FX_INT64 | IFX_ChunkFileStream::GetSize ()=0 |
Get the current stream size, in bytes. More... | |
CFX_ByteString | CFX_StringBufBase::GetString () const |
Get a buffered byte string. More... | |
CFX_ByteStringC | CFX_StringBufBase::GetStringC () const |
Get a non-buffered byte string. More... | |
FX_BOOL | CFX_CachedFileRead::Init (FX_INT32 nChunkSize, FX_INT32 nChunkCount, FX_LPVOID pBuffer, IFX_Allocator *pAllocator=0) |
Initialize the chunk size and chunk count. More... | |
FX_STRSIZE | CFX_ByteString::Insert (FX_STRSIZE index, FX_CHAR ch) |
Insert a character before specific position. More... | |
FX_STRSIZE | CFX_WideString::Insert (FX_STRSIZE index, FX_WCHAR ch) |
Insert a wide character before specific position. More... | |
virtual FX_BOOL | IFX_MemoryStream::IsConsecutive () const =0 |
Determine whether the current mode is consecutive or not. More... | |
bool | CFX_ByteStringC::IsEmpty () const |
Check whether current string object is empty. More... | |
bool | CFX_ByteString::IsEmpty () const |
Check whether current string object is empty. More... | |
bool | CFX_WideStringC::IsEmpty () const |
Determines whether current string object is empty. More... | |
FX_BOOL | CFX_WideString::IsEmpty () const |
Check whether current string object is empty. More... | |
virtual FX_BOOL | IFX_FileRead::IsEOF () |
Determine whether reach the end of stream. More... | |
virtual FX_BOOL | CFX_CachedFileRead::IsEOF () |
Determine whether reach the end of stream. More... | |
virtual FX_BOOL | IFX_StreamRead::IsEOF ()=0 |
Determine whether reach the end of stream. More... | |
virtual FX_BOOL | IFX_FileStream::IsEOF ()=0 |
Determine whether reach the end of stream. More... | |
virtual FX_BOOL | IFX_ChunkFileStream::IsEOF ()=0 |
Determine whether reach the end of stream. More... | |
virtual FX_BOOL | IFX_BufferRead::IsEOF ()=0 |
Determine whether reach the end of stream. More... | |
CFX_ByteString | CFX_ByteString::Left (FX_STRSIZE count) const |
Extracts the first (leftmost) count bytes from this CFX_ByteString object as a sub-string. More... | |
CFX_WideStringC | CFX_WideStringC::Left (FX_STRSIZE count) const |
Extracts the first (leftmost) count wide characters from this CFX_WideStringC object as a sub-string. More... | |
CFX_WideString | CFX_WideString::Left (FX_STRSIZE count) const |
Extracts the first (leftmost) count wide characters from this CFX_WideString object as a sub-string. More... | |
void | CFX_ByteString::Load (FX_LPCBYTE str, FX_STRSIZE len) |
Load from a byte string. More... | |
static CFX_ByteString | CFX_ByteString::LoadFromFile (FX_BSTR file_path) |
Load the whole content of a file. More... | |
FX_LPSTR | CFX_ByteString::LockBuffer () |
Lock and get the current string buffer, so the caller can modify the returned buffer. More... | |
FX_LPWSTR | CFX_WideString::LockBuffer () |
Lock and get the current string buffer, so the caller can modify the returned buffer. Caller can modified the returned buffer, and should call CFX_WideString::ReleaseBuffer after modification done. More... | |
void | CFX_ByteString::MakeLower () |
Change case of English letters to lower. More... | |
void | CFX_WideString::MakeLower () |
Change case of English letters to lower. More... | |
void | CFX_ByteString::MakeUpper () |
Change case of English letters to upper. More... | |
void | CFX_WideString::MakeUpper () |
Change case of English letters to upper. More... | |
CFX_ByteString | CFX_ByteString::Mid (FX_STRSIZE first) const |
Extracts a substring from this CFX_ByteString object, starting at position nFirst (zero-based) to last. More... | |
CFX_WideString | CFX_WideString::Mid (FX_STRSIZE first) const |
Extracts a substring from this CFX_WideString object, starting at position nFirst (zero-based) to last. More... | |
CFX_ByteString | CFX_ByteString::Mid (FX_STRSIZE first, FX_STRSIZE count) const |
Extracts a substring of count bytes from this CFX_ByteString object, starting at position nFirst (zero-based) to last. More... | |
CFX_WideString | CFX_WideString::Mid (FX_STRSIZE first, FX_STRSIZE count) const |
Extracts a substring of count wide character from this CFX_WideString object, starting at position nFirst (zero-based) to last. More... | |
CFX_ByteStringC | CFX_ByteStringC::Mid (FX_STRSIZE index, FX_STRSIZE count=-1) const |
This method extracts a substring of length count bytes from this CFX_ByteStringC object, starting at position index (zero-based). More... | |
CFX_WideStringC | CFX_WideStringC::Mid (FX_STRSIZE index, FX_STRSIZE count=-1) const |
Extracts a substring of length count bytes from this CFX_WideStringC object, starting at position index (zero-based). More... | |
CFX_ByteStringC::operator FX_LPCBYTE () const | |
This casting operator accesses the byte string referred in a CFX_ByteStringC object. More... | |
CFX_ByteString::operator FX_LPCBYTE () const | |
FX_LPCBYTE type conversion operator. CFX_ByteString can be used in places where FX_LPCSTR or FX_LPCBYTE is needed. | |
CFX_ByteString::operator FX_LPCSTR () const | |
FX_LPCSTR type conversion operator. CFX_ByteString can be used in places where FX_LPCSTR or FX_LPCBYTE is needed. | |
CFX_WideString::operator FX_LPCWSTR () const | |
FX_LPCWSTR type conversion operator. | |
bool | CFX_ByteString::operator!= (const CFX_ByteString &str) const |
Comparison(!=) operator overload. case-sensitive. More... | |
bool | CFX_ByteStringC::operator!= (const CFX_ByteStringC &str) const |
Comparison(!=) operator overload. case-sensitive. More... | |
bool | CFX_WideStringC::operator!= (const CFX_WideStringC &str) const |
Comparison(!=) operator overload. Case-sensitive. More... | |
bool | CFX_ByteString::operator!= (FX_BSTR str) const |
Comparison(!=) operator overload. case-sensitive. More... | |
bool | CFX_ByteString::operator!= (FX_LPCSTR str) const |
Comparison(!=) operator overload. case-sensitive. More... | |
const CFX_ByteString & | CFX_ByteString::operator+= (const CFX_ByteString &str) |
Concatenation(+=) operator overload. Concatenate a CFX_ByteString object. More... | |
const CFX_WideString & | CFX_WideString::operator+= (const CFX_WideString &str) |
Concatenation(+=) operator overload. Concatenate a wide string. More... | |
const CFX_WideString & | CFX_WideString::operator+= (const CFX_WideStringC &str) |
Concatenation(+=) operator overload. Concatenate a constant wide string. More... | |
const CFX_ByteString & | CFX_ByteString::operator+= (FX_BSTR bstrc) |
Concatenation(+=) operator overload. Concatenate a constant CFX_ByteStringC object. More... | |
const CFX_ByteString & | CFX_ByteString::operator+= (FX_CHAR ch) |
Concatenation(+=) operator overload. Concatenate a single character. More... | |
const CFX_ByteString & | CFX_ByteString::operator+= (FX_LPCSTR str) |
Concatenation(+=) operator overload. Concatenate a null-terminated character string. More... | |
const CFX_WideString & | CFX_WideString::operator+= (FX_LPCWSTR str) |
Concatenation(+=) operator overload. Concatenate a wide character string. More... | |
const CFX_WideString & | CFX_WideString::operator+= (FX_WCHAR ch) |
Concatenation(+=) operator overload. Concatenate a single wide character. More... | |
bool | CFX_ByteString::operator< (const CFX_ByteString &rhs) const |
Comparison(<) operator overload. case-sensitive. More... | |
const CFX_ByteString & | CFX_ByteString::operator= (const CFX_BinaryBuf &buf) |
Assignment(=) operator overload. From a CFX_BinaryBuf object. More... | |
CFX_ByteStringC & | CFX_ByteStringC::operator= (const CFX_ByteString &src) |
Assignment(=) operator overload. From a CFX_ByteString object. More... | |
const CFX_ByteString & | CFX_ByteString::operator= (const CFX_ByteString &stringSrc) |
Assignment(=) operator overload. From a CFX_ByteString object. More... | |
CFX_ByteStringC & | CFX_ByteStringC::operator= (const CFX_ByteStringC &src) |
Assignment(=) operator overload. From a CFX_ByteStringC object. More... | |
const CFX_WideString & | CFX_WideString::operator= (const CFX_WideString &stringSrc) |
Assignment(=) operator overload. From a wide string. More... | |
CFX_WideStringC & | CFX_WideStringC::operator= (const CFX_WideStringC &src) |
Assignment(=) operator overload. From a CFX_WideStringC object. More... | |
const CFX_WideString & | CFX_WideString::operator= (const CFX_WideStringC &stringSrc) |
Assignment(=) operator overload. From a const wide string. More... | |
const CFX_ByteString & | CFX_ByteString::operator= (FX_BSTR bstrc) |
Assignment(=) operator overload. From a constant byte string. More... | |
CFX_ByteStringC & | CFX_ByteStringC::operator= (FX_LPCSTR src) |
Assignment(=) operator overload. From a character string. More... | |
const CFX_ByteString & | CFX_ByteString::operator= (FX_LPCSTR str) |
Assignment(=) operator overload. From a character string. More... | |
CFX_WideStringC & | CFX_WideStringC::operator= (FX_LPCWSTR src) |
Assignment(=) operator overload. From a character string. More... | |
const CFX_WideString & | CFX_WideString::operator= (FX_LPCWSTR str) |
Assignment(=) operator overload. From a wide character string. More... | |
bool | CFX_ByteString::operator== (const CFX_ByteString &str) const |
Comparison(==) operator overload. case-sensitive. More... | |
bool | CFX_ByteStringC::operator== (const CFX_ByteStringC &str) const |
Comparison(==) operator overload. case-sensitive. More... | |
bool | CFX_WideStringC::operator== (const CFX_WideStringC &str) const |
Comparison(==) operator overload. Case-sensitive. More... | |
bool | CFX_ByteString::operator== (FX_BSTR str) const |
Comparison(==) operator overload. case-sensitive. More... | |
bool | CFX_ByteString::operator== (FX_LPCSTR str) const |
Comparison(==) operator overload. case-sensitive. More... | |
FX_BYTE | CFX_ByteString::operator[] (FX_STRSIZE nIndex) const |
Subscript([]) operator overload. It retrieves a single byte specified by the zero-based index in nIndex. More... | |
FX_WCHAR | CFX_WideString::operator[] (FX_STRSIZE nIndex) const |
Subscript([]) operator overload. It retrieves a wide character specified by the zero-based index in nIndex. More... | |
FX_BOOL | CFX_CachedFileRead::PreCache (FX_INT64 offset, FX_INT32 nCacheCount) |
Attach a file read. More... | |
virtual FX_BOOL | CFX_CachedFileRead::ReadBlock (void *buffer, FX_INT64 offset, size_t size) |
Read a data block from the file. More... | |
virtual FX_BOOL | IFX_FileRead::ReadBlock (void *buffer, FX_INT64 offset, size_t size)=0 |
Read a data block from the file. More... | |
virtual FX_BOOL | IFX_FileStream::ReadBlock (void *buffer, FX_INT64 offset, size_t size)=0 |
Read a data block from stream. More... | |
virtual FX_BOOL | IFX_ChunkFileStream::ReadBlock (void *buffer, FX_INT64 offset, size_t size)=0 |
Read a data block from stream. More... | |
virtual size_t | IFX_FileRead::ReadBlock (void *buffer, size_t size) |
Read data block from stream. More... | |
virtual size_t | CFX_CachedFileRead::ReadBlock (void *buffer, size_t size) |
Read data block from stream. More... | |
virtual size_t | IFX_StreamRead::ReadBlock (void *buffer, size_t size)=0 |
Read data block from sequential stream. More... | |
virtual size_t | IFX_FileStream::ReadBlock (void *buffer, size_t size)=0 |
Read data block from stream. More... | |
virtual size_t | IFX_ChunkFileStream::ReadBlock (void *buffer, size_t size)=0 |
Read data block from stream. More... | |
virtual size_t | IFX_BufferRead::ReadBlock (void *buffer, size_t size)=0 |
Read data block from sequential stream. More... | |
virtual FX_BOOL | IFX_BufferRead::ReadNextBlock (FX_BOOL bRestart=false)=0 |
Read the next block in sequential stream. More... | |
virtual void | CFX_CachedFileRead::Release () |
Destroy the current instance. More... | |
virtual void | IFX_StreamWrite::Release ()=0 |
Called when to release everything. | |
virtual void | IFX_FileWrite::Release ()=0 |
Called when to release everything. | |
virtual void | IFX_StreamRead::Release ()=0 |
Called when to release everything. More... | |
virtual void | IFX_FileRead::Release ()=0 |
Called when to release everything. More... | |
virtual void | IFX_FileStream::Release ()=0 |
Destroy the current instance. More... | |
virtual void | IFX_ChunkFileStream::Release ()=0 |
Destroy the current instance. More... | |
virtual void | IFX_FileAccess::Release ()=0 |
Destroy the current instance. More... | |
virtual void | IFX_BufferRead::Release ()=0 |
Called when to release the current instance. More... | |
void | CFX_ByteString::ReleaseBuffer (FX_STRSIZE len=-1) |
Release the buffer fetched by function CFX_ByteString::GetBuffer or CFX_ByteString::LockBuffer, and set the length of modified string. More... | |
void | CFX_WideString::ReleaseBuffer (FX_STRSIZE len=-1) |
Release the buffer fetched by function CFX_WideString::GetBuffer or CFX_WideString::LockBuffer, and set the length of modified string. More... | |
FX_STRSIZE | CFX_ByteString::Remove (FX_CHAR ch) |
Remove all occurrence of a particular character. More... | |
FX_STRSIZE | CFX_WideString::Remove (FX_WCHAR ch) |
Remove all occurrence of a particular character. More... | |
FX_STRSIZE | CFX_ByteString::Replace (FX_BSTR lpszOld, FX_BSTR lpszNew) |
Replace all patterns in the string with a new sub-string. More... | |
FX_STRSIZE | CFX_WideString::Replace (FX_LPCWSTR lpszOld, FX_LPCWSTR lpszNew) |
Replace all patterns in the string with a new sub-string. More... | |
void | CFX_ByteString::Reserve (FX_STRSIZE len) |
Reserve a buffer that can hold specific number of bytes. More... | |
void | CFX_WideString::Reserve (FX_STRSIZE len) |
Reserve a buffer that can hold specific number of characters. More... | |
virtual IFX_FileStream * | CFX_CachedFileRead::Retain () |
Create a shared instance. More... | |
virtual IFX_FileStream * | IFX_FileStream::Retain ()=0 |
Create a shared instance. More... | |
virtual IFX_FileStream * | IFX_ChunkFileStream::Retain ()=0 |
Create a shared instance. More... | |
virtual IFX_FileAccess * | IFX_FileAccess::Retain ()=0 |
Create a shared instance. More... | |
FX_STRSIZE | CFX_ByteString::ReverseFind (FX_CHAR ch) const |
Find a character from end of the string. More... | |
CFX_ByteString | CFX_ByteString::Right (FX_STRSIZE count) const |
Extracts the last (rightmost) count bytes from this CFX_ByteString object as a sub-string. More... | |
CFX_WideStringC | CFX_WideStringC::Right (FX_STRSIZE count) const |
Extracts the last (rightmost) count wide characters from this CFX_WideStringC object as a sub-string. More... | |
CFX_WideString | CFX_WideString::Right (FX_STRSIZE count) const |
Extracts the last (rightmost) count wide characters from this CFX_WideString object as a sub-string. More... | |
void | CFX_ByteString::SetAt (FX_STRSIZE nIndex, FX_CHAR ch) |
Overwrites a single byte specified by an index number. More... | |
void | CFX_WideString::SetAt (FX_STRSIZE nIndex, FX_WCHAR ch) |
Overwrites a single wide character specified by an index number. More... | |
virtual FX_INT64 | IFX_StreamRead::SetPosition (FX_INT64 pos) |
Set the current file accessing position. More... | |
virtual FX_INT64 | IFX_FileRead::SetPosition (FX_INT64 pos) |
Set the current file accessing position. More... | |
virtual FX_BOOL | IFX_FileRead::SetRange (FX_INT64 offset, FX_INT64 size) |
Set accessing range. More... | |
void | CFX_ByteString::TrimLeft () |
Trim white spaces from the left side of the byte string. More... | |
void | CFX_WideString::TrimLeft () |
Trim white spaces from the left side of the wide string. More... | |
void | CFX_ByteString::TrimLeft (FX_BSTR lpszTargets) |
Trim continuous occurrences of specified characters from left side of the byte string. More... | |
void | CFX_ByteString::TrimLeft (FX_CHAR chTarget) |
Trim continuous occurrences of specified characters from left side of the byte string. More... | |
void | CFX_WideString::TrimLeft (FX_LPCWSTR lpszTargets) |
Trim continuous occurrences of specified characters from left side of the wide string. More... | |
void | CFX_WideString::TrimLeft (FX_WCHAR chTarget) |
Trim continuous occurrences of specified character from left side of the wide string. More... | |
void | CFX_ByteString::TrimRight () |
Trim white spaces from the right side of the byte string. More... | |
void | CFX_WideString::TrimRight () |
Trim white spaces from the right side of the wide string. More... | |
void | CFX_ByteString::TrimRight (FX_BSTR lpszTargets) |
Trim continuous occurrences of specified characters from right side of the byte string. More... | |
void | CFX_ByteString::TrimRight (FX_CHAR chTarget) |
Trim continuous occurrences of specified character from right side of the byte string. More... | |
void | CFX_WideString::TrimRight (FX_LPCWSTR lpszTargets) |
Trim continuous occurrences of specified characters from right side of the wide string. More... | |
void | CFX_WideString::TrimRight (FX_WCHAR chTarget) |
Trim continuous occurrences of specified character from right side of the wide string. More... | |
CFX_ByteString | CFX_WideString::UTF16LE_Encode (FX_BOOL bTerminate=true) const |
Do UTF16LE encoding. More... | |
CFX_WideString | CFX_ByteString::UTF8Decode () const |
Decode a UTF-8 unicode string (assume this byte string is UTF-8 encoded). More... | |
CFX_ByteString | CFX_WideString::UTF8Encode () const |
Do UTF8 encoding. More... | |
virtual FX_BOOL | CFX_CachedFileRead::WriteBlock (const void *buffer, FX_INT64 offset, size_t size) |
Write a block data into stream. Unsupported for reading mode, return false directly. | |
virtual FX_BOOL | IFX_FileStream::WriteBlock (const void *buffer, FX_INT64 offset, size_t size)=0 |
Write a block data into stream. More... | |
virtual FX_BOOL | IFX_ChunkFileStream::WriteBlock (const void *buffer, FX_INT64 offset, size_t size)=0 |
Write a block data into stream. More... | |
virtual FX_BOOL | IFX_FileStream::WriteBlock (const void *buffer, size_t size) |
Write a block data to the end of current stream. More... | |
virtual FX_BOOL | IFX_ChunkFileStream::WriteBlock (const void *buffer, size_t size) |
Write a block data to the end of current stream. More... | |
virtual FX_BOOL | IFX_FileWrite::WriteBlock (const void *pData, FX_INT64 offset, size_t size)=0 |
Write a block data. More... | |
virtual FX_BOOL | IFX_FileWrite::WriteBlock (const void *pData, size_t size) |
Write a block data to the end. More... | |
virtual FX_BOOL | IFX_StreamWrite::WriteBlock (const void *pData, size_t size)=0 |
Write a block data. More... | |
static FX_STRSIZE | CFX_WideString::WStringLength (const unsigned short *str) |
Length of string. More... | |
Variables | |
void *(* | FXMEM_SystemMgr::Alloc )(struct _FXMEM_SystemMgr *pMgr, size_t size, int flags) |
A pointer type to an allocation function. More... | |
void *(* | FXMEM_SystemMgr::AllocDebug )(struct _FXMEM_SystemMgr *pMgr, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function. More... | |
void(* | FXMEM_SystemMgr::CollectAll )(struct _FXMEM_SystemMgr *pMgr) |
A pointer type to a memory-collection function. More... | |
FX_HTHREAD(* | FX_THREADHANDLER::CreateThread )(FX_LPVOID pUserData, FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc lpfThreadProc, FX_LPVOID param) |
Callback function to create a thread. More... | |
FX_WORD | FXCRT_DATETIMEZONE::day |
Day of month, from 1 to 31. | |
FX_WORD | FXCRT_DATETIMEZONE::dayOfWeek |
Day of week, from 0 to 6. PDF standard doesn't support now, you can omit this field if it is not applicable. | |
FX_BOOL(* | FX_THREADHANDLER::ExitThread )(FX_LPVOID pUserData) |
Callback function to exit from the current thread. More... | |
void(* | FXMEM_SystemMgr::Free )(struct _FXMEM_SystemMgr *pMgr, void *pointer, int flags) |
A pointer type to a free function. More... | |
void(* | FXMEM_SystemMgr2::Free )(struct _FXMEM_SystemMgr2 *pMgr, void *memory) |
Called when an addition memory pool becomes empty. More... | |
const typedef CFX_ByteStringC & | FX_BSTR |
A reference to a constant CFX_ByteStringC object. | |
FX_HTHREAD(* | FX_THREADHANDLER::GetCurrentThread )(FX_LPVOID pUserData) |
Callback function to get handle of the current thread. More... | |
FX_INT32(* | FX_THREADHANDLER::GetThreadPriority )(FX_LPVOID pUserData, FX_HTHREAD hThread) |
Callback function to get thread priority. More... | |
FX_WORD | FXCRT_DATETIMEZONE::hour |
Hour, from 0 to 23. | |
void *(* | FXMEM_SystemMgr::Lock )(struct _FXMEM_SystemMgr *pMgr, void *handle) |
A pointer type to a lock function. More... | |
void *(* | IFX_Allocator::m_Alloc )(struct _IFX_Allocator *pAllocator, size_t size) |
A pointer type to an allocation function. More... | |
void *(* | IFX_Allocator::m_AllocDebug )(struct _IFX_Allocator *pAllocator, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function. More... | |
FX_CHAR | CFX_StringBufTemplate< limit >::m_Buffer [limit] |
The fixed string buffer. More... | |
void(* | IFX_Allocator::m_Free )(struct _IFX_Allocator *pAllocator, void *p) |
A pointer type to a free function. More... | |
FX_STRSIZE | CFX_StringData::m_nAllocLength |
Length of allocation. | |
FX_STRSIZE | CFX_StringDataW::m_nAllocLength |
Length of allocation. | |
FX_STRSIZE | CFX_StringData::m_nDataLength |
Length of data (excluding terminator). | |
FX_STRSIZE | CFX_StringDataW::m_nDataLength |
Length of data (excluding terminator). | |
long | CFX_StringData::m_nRefs |
Reference count. | |
long | CFX_StringDataW::m_nRefs |
Reference count. | |
void *(* | IFX_Allocator::m_Realloc )(struct _IFX_Allocator *pAllocator, void *p, size_t size) |
A pointer type to a re-allocation function. More... | |
void *(* | IFX_Allocator::m_ReallocDebug )(struct _IFX_Allocator *pAllocator, void *p, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode re-allocation function. More... | |
FX_CHAR | CFX_StringData::m_String [1] |
Real data (actually a variable-sized array). | |
FX_WCHAR | CFX_StringDataW::m_String [1] |
Real data (actually a variable-sized array). | |
FX_WORD | FXCRT_DATETIMEZONE::milliseconds |
Millisecond, from 0 to 999. PDF standard doesn't support now, you can omit this field if it is not applicable. | |
FX_WORD | FXCRT_DATETIMEZONE::minute |
Minute, from 0 to 59. | |
FX_WORD | FXCRT_DATETIMEZONE::month |
Month, from 1 to 12. | |
FX_BOOL(* | FXMEM_SystemMgr2::More )(struct _FXMEM_SystemMgr2 *pMgr, size_t alloc_size, void **new_memory, size_t *new_size) |
Called when fixed memory manager needs more memory. More... | |
size_t | FX_MEMCONFIG::nPageNum_Init16 |
Initial number of memory pages for 16-bytes fixed data size. 8 for desktop platforms, 5 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageNum_Init32 |
Initial number of memory pages for 32-bytes fixed data size. 24 for desktop platforms, 8 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageNum_Init8 |
Initial number of memory pages for 8-bytes fixed data size. 1 for desktop platforms, 1 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageNum_InitMid |
Initial number of memory pages for middle data range. 2 for desktop platforms, 2 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageNum_More16 |
More number of memory pages for 16-bytes fixed data size. 8 for desktop platforms, 4 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageNum_More32 |
More number of memry pages for 32-bytes fixed data size. 24 for desktop platforms, 12 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageNum_MoreMid |
More number of memory pages for middle data range. 4 for desktop platforms, 4 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageSize_Alone |
Minimum size of alone memory page for large data. 64 for desktop platforms, 64 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageSize_Large |
Minimum size of memory page for large data (> FX_FIXEDMEM_MIDBLOCKSIZE). 128 for desktop platforms, 32 for limited memory environments. | |
size_t | FX_MEMCONFIG::nPageSize_Mid |
Size of memory pages for middle data range (> 32-bytes & <= FX_FIXEDMEM_MIDBLOCKSIZE). 32 for desktop platforms, 8 for limited memory environments. | |
void(* | FXMEM_Debugger::OnAlloc )(FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags) |
A pointer type to an allocation-callback function. More... | |
void(* | FXMEM_Debugger::OnAllocDebug )(FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation-callback function. More... | |
void(* | FXMEM_Debugger::OnFree )(FXMEM_FoxitMgr *pMgr, void *p, int flags) |
A pointer type to a free-callback function. More... | |
void(* | FXMEM_Debugger::OnRealloc )(FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags) |
A pointer type to a reallocation-callback function. More... | |
void(* | FXMEM_Debugger::OnReallocDebug )(FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode reallocation-callback function. More... | |
void(* | FXMEM_Debugger::OnTag )(FXMEM_FoxitMgr *pMgr, FX_LPCSTR tag) |
A pointer type to a tag-callback function. More... | |
void(* | FXMEM_SystemMgr::Purge )(struct _FXMEM_SystemMgr *pMgr) |
A pointer type to a purge function, which can be used to purge excessive memory without touching any used memory. More... | |
FX_LPVOID | FX_THREADHANDLER::pUserData |
Pointer to user data. | |
void *(* | FXMEM_SystemMgr::Realloc )(struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags) |
A pointer type to a reallocation function. More... | |
void *(* | FXMEM_SystemMgr::ReallocDebug )(struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode reallocation function. More... | |
FX_WORD | FXCRT_DATETIMEZONE::second |
Second, from 0 to 60. 60 for leap second. | |
void(* | FX_THREADHANDLER::SetThreadPriority )(FX_LPVOID pUserData, FX_HTHREAD hThread, FX_INT32 nPriority) |
Callback function to set thread priority. More... | |
FX_INT32 | FXCRT_DATETIMEZONE::tzHour |
Hour of time zone, from -12 to 12. More... | |
FX_WORD | FXCRT_DATETIMEZONE::tzMinute |
Minute of time zone, from 0 to 59. | |
void(* | FXMEM_SystemMgr::Unlock )(struct _FXMEM_SystemMgr *pMgr, void *handle) |
A pointer type to a unlock function. More... | |
void * | FXMEM_SystemMgr::user |
A generic typeless pointer for user data. | |
FX_INT32(* | FX_THREADHANDLER::WaitForMultipleThreads )(FX_LPVOID pUserData, const FX_HTHREAD *pThreads, FX_INT32 nCount) |
Wait for termination of multiple threads. More... | |
FX_INT32(* | FX_THREADHANDLER::WaitForSingleThread )(FX_LPVOID pUserData, FX_HTHREAD hThread) |
Wait for termination of a single thread. More... | |
FX_WORD | FXCRT_DATETIMEZONE::year |
Year, a four-digit number, such as 2014. | |
void(* | FX_THREADHANDLER::Yield )(FX_LPVOID pUserData) |
Callback function to change CPU time to another thread. More... | |
Basic memory operations | |
typedef void(* | FPDF_OOM_Handler) (FXMEM_FoxitMgr *pFoxitMgr, void *param) |
the prototype of the Out-Of-Memory handler. More... | |
void * | FXMEM_Alloc (FXMEM_FoxitMgr *pFoxitMgr, size_t size, int flags) |
Foxit basic memory allocation function. More... | |
void * | FXMEM_AllocDebug (FXMEM_FoxitMgr *pFoxitMgr, size_t size, int flags, FX_LPCSTR file, int line) |
Foxit basic memory allocation function in debug-mode. More... | |
void * | FXMEM_Realloc (FXMEM_FoxitMgr *pFoxitMgr, void *pointer, size_t new_size, int flags) |
Foxit basic memory reallocation function. More... | |
void * | FXMEM_ReallocDebug (FXMEM_FoxitMgr *pFoxitMgr, void *pointer, size_t new_size, int flags, FX_LPCSTR file, int line) |
Foxit basic memory reallocation function in debug-mode. More... | |
void | FXMEM_Free (FXMEM_FoxitMgr *pFoxitMgr, void *pointer, int flags) |
Foxit basic memory free function. More... | |
void | FXMEM_CollectAll (FXMEM_FoxitMgr *pFoxitMgr) |
Release all memory blocks allocated by a Foxit manager. This function is only supported on embedded systems. More... | |
void | FXMEM_PurgeMgr (FXMEM_FoxitMgr *pFoxitMgr) |
Release all excessive memory without touching any used memory. This is useful for extensible fixed memory manager (FXMEM_SystemMgr2), because we never free those additional memory pool until the memory manager destroyed. More... | |
void | FXMEM_ReportOOM (FXMEM_FoxitMgr *pFoxitMgr) |
Report Out-of-memory (OOM). More... | |
void | FXMEM_UseDebugger (FXMEM_FoxitMgr *pFoxitMgr, FXMEM_Debugger *pDebugger) |
Use a memory debugger which capturing all memory activities. Use NULL for parameter pDebugger to stop debugging. More... | |
void | FXMEM_OutputDebugTag (FXMEM_FoxitMgr *pFoxitMgr, FX_LPCSTR tag) |
Output a memory debug tag. More... | |
void | FXMEM_SetOOMHandler (FXMEM_FoxitMgr *pFoxitMgr, FPDF_OOM_Handler pOOMReportFunc, void *param) |
Setup A Out-Of-Memory handler for a Foxit memory manager. More... | |
Following base memory functions use default Foxit manager for current module | |
void * | FXMEM_DefaultAlloc (size_t byte_size, int flags) |
Default allocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultAlloc2 (size_t units, size_t unit_size, int flags) |
Default allocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultAllocDebug (size_t size, int flags, FX_LPCSTR file, int line) |
Default debug-mode allocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultAllocDebug2 (size_t units, size_t unit_size, int flags, FX_LPCSTR file, int line) |
Default debug-mode allocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultRealloc (void *pointer, size_t new_size, int flags) |
Default reallocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultRealloc2 (void *pointer, size_t units, size_t unit_size, int flags) |
Default reallocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultReallocDebug (void *pointer, size_t new_size, int flags, FX_LPCSTR file, int line) |
Default debug-mode reallocation function using default Foxit memory manager for current module. More... | |
void * | FXMEM_DefaultReallocDebug2 (void *pointer, size_t units, size_t unit_size, int flags, FX_LPCSTR file, int line) |
Default debug-mode reallocation function using default Foxit memory manager for current module. More... | |
void | FXMEM_DefaultFree (void *pointer, int flags) |
Default free function using default Foxit memory manager for current module. More... | |
IFX_Allocator * | FXMEM_GetDefAllocator () |
Get default allocator used by the library. More... | |
void | FXMEM_SetConfig (const FX_MEMCONFIG *memConfig) |
Set configuration of fixed memory. More... | |
#define | FX_Alloc(type, size) |
A macro for Foxit memory allocation operation. | |
#define | FX_Realloc(type, ptr, size) |
A macro for Foxit memory reallocation operation. | |
#define | FX_AllocNL(type, size) |
A macro for Foxit memory allocation operation with non-leaving (return NULL if OOM). | |
#define | FX_ReallocNL(type, ptr, size) |
A macro for Foxit memory reallocation operation with non-leaving (return NULL if OOM). | |
#define | FX_Free(pointer) FXMEM_DefaultFree(pointer, 0) |
A macro for Foxit memory free operation. | |
#define | FX_Allocator_Alloc(fxAllocator, type, size) ((fxAllocator) ? (type*)(fxAllocator)->m_Alloc((fxAllocator), (size) * sizeof(type)) : (FX_Alloc(type, size))) |
Release-mode allocation on an allocator. | |
#define | FX_Allocator_Realloc(fxAllocator, type, ptr, new_size) ((fxAllocator) ? (type*)(fxAllocator)->m_Realloc((fxAllocator), (ptr), (new_size) * sizeof(type)) : (FX_Realloc(type, ptr, new_size))) |
Release-mode re-allocation on an allocator. | |
#define | FX_Allocator_Free(fxAllocator, ptr) ((fxAllocator) ? (fxAllocator)->m_Free((fxAllocator), (ptr)) : (FX_Free(ptr))) |
Free memory block on an allocator. | |
#define | _FXMEM_NO64_ |
#define | FX_FIXEDMEM_PAGESIZE (4096 * 16) |
Size of memory page, 64KB. | |
#define | FX_FIXEDMEM_MIDBLOCKSIZE (4096) |
Size of middle data block, 4KB. | |
Time | |
void | FX_Time_GetSystemTime (FX_SYSTEMTIME *pSystemTime) |
Retrieve the current system date and time. More... | |
void | FX_Time_GetLocalTime (FX_SYSTEMTIME *pSystemTime) |
Retrieve the current local date and time. More... | |
FX_DWORD | FX_Time_GetClock () |
Get the clock ticks elapsed by calling process. More... | |
FX_DWORD | FX_Time_Sleep (FX_DWORD dwMilliseconds) |
Delay the current running for specified milliseconds. More... | |
void | FXCRT_GetCurrentSystemTime (FXCRT_DATETIMEZONE &dt) |
Get current system date,time and timezone information. More... | |
Type for process ID | |
typedef FX_DWORD | FX_PROCESSID |
Process ID. | |
Process management | |
void | FX_Process_Initialize () |
Initialize process. More... | |
void | FX_Process_Finalize () |
Finalize process. More... | |
FX_PROCESSID | FX_Process_GetID () |
Get the current process ID. More... | |
FX_LPVOID | FX_Process_GetPrivateData (FX_LPVOID key) |
Get private data in the current process. More... | |
void | FX_Process_SetPrivateData (FX_LPVOID key, FX_LPVOID data, PD_CALLBACK_FREEDATA callback) |
Set private data in the current process. More... | |
void | FX_Process_RemovePrivateData (FX_LPVOID key) |
Remove private data in the current process. More... | |
CFX_ProcessContext * | FX_Process_GetContext () |
Retrieve process context. More... | |
Flags for thread priorities | |
typedef DWORD | FX_ThreadResult |
typedef FX_ThreadResult(WINAPI * | FX_CALLBACK_ThreadProc) (FX_LPVOID param) |
Callback function of thread procedure. More... | |
typedef FX_ThreadResult(WINAPI * | FX_CALLBACK_ThreadProxyProc) (FX_CALLBACK_ThreadProc threadProc, FX_LPVOID param) |
Callback function of thread proxy procedure. More... | |
#define | FX_THREADPRIORITY_Lowest -2 |
Lowest priority. | |
#define | FX_THREADPRIORITY_Lower -1 |
Lower priority. | |
#define | FX_THREADPRIORITY_Normal 0 |
Normal priority. | |
#define | FX_THREADPRIORITY_Higher 1 |
Higher priority. | |
#define | FX_THREADPRIORITY_Highest 2 |
Highest priority. | |
#define | THREAD_CALL_CONVENTION WINAPI |
Thread handler | |
FX_THREADHANDLER * | FX_Thread_GetHandler () |
Get the current thread handler. More... | |
void | FX_Thread_SetHandler (FX_THREADHANDLER *pThreadHandler) |
Set the current thread handler. More... | |
Thread functions | |
FX_HTHREAD | FX_Thread_Create (FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc threadProc, FX_LPVOID param) |
Create a new thread. More... | |
void | FX_Thread_Exit () |
Exit from the current thread. More... | |
FX_HTHREAD | FX_Thread_GetHandle () |
Get the current thread handle. More... | |
void | FX_Thread_Yield () |
Yield the processor to another thread. More... | |
FX_INT32 | FX_Thread_GetLastError () |
Get the last error code in the current thread. More... | |
void | FX_Thread_SetLastError (FX_INT32 nErr) |
Set the last error code in the current thread. More... | |
FX_LPVOID | FX_Thread_GetPrivateData (FX_LPVOID key) |
Get private data in the current thread. More... | |
void | FX_Thread_SetPrivateData (FX_LPVOID key, FX_LPVOID data, PD_CALLBACK_FREEDATA callback) |
Set private data in the current thread. More... | |
void | FX_Thread_RemovePrivateData (FX_LPVOID key) |
Remove private data in the current thread. More... | |
FX_INT32 | FX_Thread_GetPriority (FX_HTHREAD hThread) |
Get thread priority. More... | |
void | FX_Thread_SetPriority (FX_HTHREAD hThread, FX_INT32 nPriority) |
Set thread priority. More... | |
FX_INT32 | FX_Thread_WaitForSingleThread (FX_HTHREAD hThread) |
Wait for termination of a single thread. More... | |
FX_INT32 | FX_Thread_WaitForMultipleThreads (const FX_HTHREAD *pThreads, FX_INT32 nCount) |
Wait for termination of multiple threads. More... | |
Context access | |
CFX_ThreadContext * | FX_Thread_GetContext () |
Get the current thread context. More... | |
CFX_ExceptionContext * | FX_Thread_GetExceptionContext () |
Get the current thread exception context. More... | |
Mutex | |
| |
FX_BOOL | FX_Mutex_Initialize (FX_MUTEX *pMutex) |
Initialize a mutex. More... | |
void | FX_Mutex_Destroy (FX_MUTEX *pMutex) |
Destroy a mutex. More... | |
FX_BOOL | FX_Mutex_TryLock (FX_MUTEX *pMutex) |
Try to lock a mutex. More... | |
void | FX_Mutex_Lock (FX_MUTEX *pMutex) |
Lock a mutex. More... | |
void | FX_Mutex_Unlock (FX_MUTEX *pMutex) |
Unlock a mutex. More... | |
Spin Lock | |
| |
FX_BOOL | FX_SpinLock_Initialize (FX_SPINLOCK *pSpinLock) |
Initialize a spin lock. More... | |
void | FX_SpinLock_Destroy (FX_SPINLOCK *pSpinLock) |
Destroy a spin lock. More... | |
FX_BOOL | FX_SpinLock_TryLock (FX_SPINLOCK *pSpinLock) |
Try to lock a spin lock. More... | |
void | FX_SpinLock_Lock (FX_SPINLOCK *pSpinLock) |
Lock a spin lock. More... | |
void | FX_SpinLock_Unlock (FX_SPINLOCK *pSpinLock) |
Unlock a spin lock. More... | |
FX_BOOL | FX_SpinLock_IsLocked (FX_SPINLOCK *pSpinLock) |
Determine whether specified spin lock is locked or not. More... | |
#define | FXMT_SPLOCK_THIS |
#define | FXMT_SPLOCK_OBJ(lock) |
Read-Write lock | |
| |
FX_BOOL | FX_RWLock_Initialize (FX_RWLOCK *pRWLock) |
Initialize a read-write lock. More... | |
void | FX_RWLock_Destroy (FX_RWLOCK *pRWLock) |
Destroy a read-write lock. More... | |
FX_BOOL | FX_RWLock_TryReadLock (FX_RWLOCK *pRWLock) |
Try to lock for share read. More... | |
void | FX_RWLock_ReadLock (FX_RWLOCK *pRWLock) |
Lock for share read. More... | |
void | FX_RWLock_ReadUnlock (FX_RWLOCK *pRWLock) |
Unlock for share read. More... | |
FX_BOOL | FX_RWLock_TryWriteLock (FX_RWLOCK *pRWLock) |
Try to lock for exclusive write. More... | |
void | FX_RWLock_WriteLock (FX_RWLOCK *pRWLock) |
Lock for exclusive write. More... | |
void | FX_RWLock_WriteUnlock (FX_RWLOCK *pRWLock) |
Unlock for exclusive write. More... | |
#define | FXMT_RWLOCK_THIS |
#define | FXMT_RWLOCK_OBJ(lock, s) |
#define | FXMT_RWLOCK_DEFINEOBJ(rwLock, lock, s) |
#define | FXMT_RWLOCKOBJECT_DEFINE(rwLockObj) |
#define | FXMT_RWLOCKOBJECT_TRYREADLOCK(lockObj) |
#define | FXMT_RWLOCKOBJECT_TRYREADLOCK_IF(lockObj) |
#define | FXMT_RWLOCKOBJECT_READLOCK(lockObj) |
#define | FXMT_RWLOCKOBJECT_READUNLOCK(lockObj) |
#define | FXMT_RWLOCKOBJECT_TRYWRITELOCK(lockObj) |
#define | FXMT_RWLOCKOBJECT_TRYWRITELOCK_IF(lockObj) |
#define | FXMT_RWLOCKOBJECT_WRITELOCK(lockObj) |
#define | FXMT_RWLOCKOBJECT_WRITEUNLOCK(lockObj) |
Atomic Count | |
| |
FX_INT32 | FX_Atom_Add32 (volatile FX_INT32 *pAddend, FX_INT32 nIncrement) |
Increase 32-bits integer value. More... | |
FX_INT32 | FX_Atom_Subtract32 (volatile FX_INT32 *pAddend, FX_INT32 nDecrement) |
Decrease 32-bits integer value. More... | |
FX_INT64 | FX_Atom_Add64 (volatile FX_INT64 *pAddend, FX_INT64 nIncrement) |
Increase 64-bits integer value. More... | |
FX_INT64 | FX_Atom_Subtract64 (volatile FX_INT64 *pAddend, FX_INT64 nDecrement) |
Decrease 64-bits integer value. More... | |
Macro definitions for File accessing modes | |
FX_HFILE | FX_File_Open (FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator *pAllocator=0) |
Open file with specified accessing mode. More... | |
FX_HFILE | FX_File_Open (FX_WSTR fileName, FX_DWORD dwMode, IFX_Allocator *pAllocator=0) |
Open file with specified accessing mode. More... | |
void | FX_File_Close (FX_HFILE hFile, IFX_Allocator *pAllocator=0) |
Close file. More... | |
FX_INT64 | FX_File_GetSize (FX_HFILE hFile) |
Get file size. More... | |
FX_INT64 | FX_File_GetPosition (FX_HFILE hFile) |
Get the current file accessing position. More... | |
FX_INT64 | FX_File_SetPosition (FX_HFILE hFile, FX_INT64 pos) |
Set the current file accessing position. More... | |
size_t | FX_File_Read (FX_HFILE hFile, void *pBuffer, size_t szBuffer) |
Read data from the current file accessing position. More... | |
size_t | FX_File_ReadPos (FX_HFILE hFile, void *pBuffer, size_t szBuffer, FX_INT64 pos) |
Read data from specified position. More... | |
size_t | FX_File_Write (FX_HFILE hFile, const void *pBuffer, size_t szBuffer) |
Write data from the current file accessing position. More... | |
size_t | FX_File_WritePos (FX_HFILE hFile, const void *pBuffer, size_t szBuffer, FX_INT64 pos) |
Write data at specified position. More... | |
FX_BOOL | FX_File_Flush (FX_HFILE hFile) |
Flush internal buffer if need. More... | |
FX_BOOL | FX_File_Truncate (FX_HFILE hFile, FX_INT64 szFile) |
Truncate file size. More... | |
FX_BOOL | FX_File_Exist (FX_BSTR fileName) |
Determine whether a file exists or not. More... | |
FX_BOOL | FX_File_Exist (FX_WSTR fileName) |
Determine whether a file exists or not. More... | |
FX_BOOL | FX_File_Delete (FX_BSTR fileName) |
Delete file. More... | |
FX_BOOL | FX_File_Delete (FX_WSTR fileName) |
Delete file. More... | |
FX_BOOL | FX_File_Copy (FX_BSTR fileNameSrc, FX_BSTR fileNameDst) |
Copy file. More... | |
FX_BOOL | FX_File_Copy (FX_WSTR fileNameSrc, FX_WSTR fileNameDst) |
Copy file. More... | |
FX_BOOL | FX_File_Move (FX_BSTR fileNameSrc, FX_BSTR fileNameDst) |
Move file. More... | |
FX_BOOL | FX_File_Move (FX_WSTR fileNameSrc, FX_WSTR fileNameDst) |
Move file. More... | |
IFX_FileWrite * | FX_CreateFileWrite (FX_LPCSTR filename, IFX_Allocator *pAllocator=0) |
(Available only for platforms supporting CRT file access (fopen, ...)) Create a CRT based file writing interface. More... | |
IFX_FileWrite * | FX_CreateFileWrite (FX_LPCWSTR filename, IFX_Allocator *pAllocator=0) |
(Available only for platforms supporting CRT file access (fopen, ...)) Create a CRT based file writing interface. More... | |
IFX_FileRead * | FX_CreateFileRead (FX_LPCSTR filename, IFX_Allocator *pAllocator=0) |
(Available only for platforms supporting CRT file access) Create a CRT based file reading interface. More... | |
IFX_FileRead * | FX_CreateFileRead (FX_LPCWSTR filename, IFX_Allocator *pAllocator=0) |
(Available only for platforms supporting CRT file access) Create a CRT based file reading interface. More... | |
IFX_FileStream * | FX_CreateFileStream (FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator *pAllocator=0) |
(Available only for platforms supporting CRT file access) Create a CRT based file I/O interface. More... | |
IFX_FileStream * | FX_CreateFileStream (FX_LPCWSTR filename, FX_DWORD dwModes, IFX_Allocator *pAllocator=0) |
(Available only for platforms supporting CRT file access) Create a CRT based file I/O interface. More... | |
IFX_FileAccess * | FX_CreateDefaultFileAccess (FX_WSTR wsPath, IFX_Allocator *pAllocator=0) |
Create a CRT based file I/O interface. More... | |
IFX_MemoryStream * | FX_CreateMemoryStream (FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver=false, IFX_Allocator *pAllocator=0) |
Creates a stream object by a given memory buffer. This function creates a consecutive memory stream object. More... | |
IFX_MemoryStream * | FX_CreateMemoryStream (FX_BOOL bConsecutive=false, IFX_Allocator *pAllocator=0) |
Create a memory stream object. Memory buffer will be created internally, and the size will increase when need more space. More... | |
#define | FX_FILEMODE_Write 0 |
Write mode. To create automatically if the file doesn't exist. | |
#define | FX_FILEMODE_ReadOnly 1 |
Read-only mode. | |
#define | FX_FILEMODE_Truncate 2 |
Clear existing contents, and size of file is to be 0. For writing mode only. | |
#define | FX_FILECACHE_CHUNKSIZE 32768 |
#define | FX_FILECACHE_CHUNKCOUNT 64 |
Byte string concatenation operation | |
Both side of the concatenation operator (+) can be:
| |
typedef CFX_StringBufTemplate< 256 > | CFX_StringBuf256 |
A fixed 256-byte string buffer. | |
const typedef CFX_WideStringC & | FX_WSTR |
Type definition for a reference to a constant CFX_WideStringC object. | |
CFX_ByteString | operator+ (FX_BSTR str1, FX_BSTR str2) |
Concatenate a non-buffered byte string and a non-buffered byte string. More... | |
CFX_ByteString | operator+ (FX_BSTR str1, FX_LPCSTR str2) |
Concatenate a non-buffered byte string and a zero-terminated C-style string. More... | |
CFX_ByteString | operator+ (FX_LPCSTR str1, FX_BSTR str2) |
Concatenate a zero-terminated C-style string and a non-buffered byte string. More... | |
CFX_ByteString | operator+ (FX_BSTR str1, FX_CHAR ch) |
Concatenate a non-buffered byte string and a single character or byte. More... | |
CFX_ByteString | operator+ (FX_CHAR ch, FX_BSTR str2) |
Concatenate a single character or byte and a non-buffered byte string. More... | |
CFX_ByteString | operator+ (const CFX_ByteString &str1, const CFX_ByteString &str2) |
Concatenate a buffered byte string and a buffered byte string. More... | |
CFX_ByteString | operator+ (const CFX_ByteString &str1, FX_CHAR ch) |
Concatenate a buffered byte string and a single character or byte. More... | |
CFX_ByteString | operator+ (FX_CHAR ch, const CFX_ByteString &str2) |
Concatenate a single character or byte and a buffered byte string. More... | |
CFX_ByteString | operator+ (const CFX_ByteString &str1, FX_LPCSTR str2) |
Concatenate a buffered byte string and a zero-terminated C-style string. More... | |
CFX_ByteString | operator+ (FX_LPCSTR str1, const CFX_ByteString &str2) |
Concatenate a zero-terminated C-style string and a buffered byte string. More... | |
CFX_ByteString | operator+ (const CFX_ByteString &str1, FX_BSTR str2) |
Concatenate a buffered byte string and a non-buffered byte string. More... | |
CFX_ByteString | operator+ (FX_BSTR str1, const CFX_ByteString &str2) |
Concatenate a non-buffered byte string and a buffered byte string. More... | |
CFX_WideStringC::CFX_WideStringC (const CFX_WideString &src) | |
Construct from a wide string. More... | |
CFX_WideStringC & | CFX_WideStringC::operator= (const CFX_WideString &src) |
Assignment(=) operator overload. From a CFX_ByteString object. More... | |
#define | FX_WSTRC(wstr) CFX_WideStringC((FX_LPCWSTR)wstr, sizeof(wstr) / sizeof(FX_WCHAR) - 1) |
All application should use the following macro when specifying a wide string constant. "wstr" must be a wide string constant. More... | |
Wide string concatenation operation | |
Both side of the concatenation operator (+) can be:
But you must have at least one CFX_WideString or CFX_WideStringC on one side. | |
CFX_WideString | operator+ (const CFX_WideStringC &str1, const CFX_WideStringC &str2) |
Concatenate a non-buffered wide string and a non-buffered wide string. More... | |
CFX_WideString | operator+ (const CFX_WideStringC &str1, FX_LPCWSTR str2) |
Concatenate a non-buffered byte string and a zero-terminated C-style string. More... | |
CFX_WideString | operator+ (FX_LPCWSTR str1, const CFX_WideStringC &str2) |
Concatenate a zero-terminated C-style string and a non-buffered byte string. More... | |
CFX_WideString | operator+ (const CFX_WideStringC &str1, FX_WCHAR ch) |
Concatenate a non-buffered byte string and a single character or byte. More... | |
CFX_WideString | operator+ (FX_WCHAR ch, const CFX_WideStringC &str2) |
Concatenate a single character or byte and a non-buffered byte string. More... | |
CFX_WideString | operator+ (const CFX_WideString &str1, const CFX_WideString &str2) |
Concatenate a buffered byte string and a buffered byte string. More... | |
CFX_WideString | operator+ (const CFX_WideString &str1, FX_WCHAR ch) |
Concatenate a buffered byte string and a single character or byte. More... | |
CFX_WideString | operator+ (FX_WCHAR ch, const CFX_WideString &str2) |
Concatenate a single character or byte and a buffered byte string. More... | |
CFX_WideString | operator+ (const CFX_WideString &str1, FX_LPCWSTR str2) |
Concatenate a buffered wide string and a zero-terminated C-style string. More... | |
CFX_WideString | operator+ (FX_LPCWSTR str1, const CFX_WideString &str2) |
Concatenate a zero-terminated C-style string and a buffered byte string. More... | |
CFX_WideString | operator+ (const CFX_WideString &str1, const CFX_WideStringC &str2) |
Concatenate a buffered byte string and a non-buffered byte string. More... | |
CFX_WideString | operator+ (const CFX_WideStringC &str1, const CFX_WideString &str2) |
Concatenate a non-buffered byte string and a buffered byte string. More... | |
Wide string compare operation | |
bool | operator== (const CFX_WideString &s1, const CFX_WideString &s2) |
Comparison(==) operator overload. Case-sensitive. More... | |
bool | operator== (const CFX_WideString &s1, const CFX_WideStringC &s2) |
Comparison(==) operator overload. Case-sensitive. More... | |
bool | operator== (const CFX_WideStringC &s1, const CFX_WideString &s2) |
Comparison(==) operator overload. Case-sensitive. More... | |
bool | operator== (const CFX_WideString &s1, FX_LPCWSTR s2) |
Comparison(==) operator overload. Case-sensitive. More... | |
bool | operator== (FX_LPCWSTR s1, const CFX_WideString &s2) |
Comparison(==) operator overload. Case-sensitive. More... | |
bool | operator!= (const CFX_WideString &s1, const CFX_WideString &s2) |
Comparison(!=) operator overload. Case-sensitive. More... | |
bool | operator!= (const CFX_WideString &s1, const CFX_WideStringC &s2) |
Comparison(!=) operator overload. Case-sensitive. More... | |
bool | operator!= (const CFX_WideStringC &s1, const CFX_WideString &s2) |
Comparison(!=) operator overload. Case-sensitive. More... | |
bool | operator!= (const CFX_WideString &s1, FX_LPCWSTR s2) |
Comparison(!=) operator overload. Case-sensitive. More... | |
bool | operator!= (FX_LPCWSTR s1, const CFX_WideString &s2) |
Comparison(!=) operator overload. Case-sensitive. More... | |
bool | operator< (const CFX_WideString &lhs, const CFX_WideString &rhs) |
Comparison(<) operator overload. Case-sensitive. More... | |
FX_FLOAT | FX_atof (FX_BSTR str) |
Convert a non-buffered byte string to a floating-point number. More... | |
void | FX_atonum (FX_BSTR str, FX_BOOL &bInteger, void *pData, int sizeOfData=4) |
Convert a non-buffered byte string to a number. More... | |
FX_STRSIZE | FX_ftoa (FX_FLOAT f, FX_LPSTR buf, int precision=0) |
Convert float to byte string. More... | |
Basic Unicode character attribute routines | |
FX_WCHAR | FXWCHAR_GetUpper (FX_WCHAR wchar) |
Convert to upper-case letter. More... | |
FX_WCHAR | FXWCHAR_GetLower (FX_WCHAR wchar) |
Convert to lower-case letter. More... | |
FX_BOOL | FXWCHAR_IsWordBreak (FX_WCHAR wchar) |
Check if the unicode can break a word. More... | |
FX_BOOL | FXWCHAR_IsSpace (FX_WCHAR wchar) |
Check if the unicode is space. More... | |
text direction defines | |
int | FXWCHAR_GetDirection (FX_WCHAR wchar) |
Get text direction. More... | |
#define | FXWCHAR_LTR 0 |
Left to right order. | |
#define | FXWCHAR_RTL 1 |
Right to left order. | |
#define | FXWCHAR_UNKNOWN 2 |
Not sure about the order or don't care. | |
Encode wide string into UTF-8 byte string | |
CFX_ByteString | FX_UTF8Encode (FX_LPCWSTR pwsStr, FX_STRSIZE len) |
Encode a wide string into a UTF-8 string. More... | |
CFX_ByteString | FX_UTF8Encode (FX_WSTR wsStr) |
Encode a wide string into a UTF-8 string. More... | |
CFX_ByteString | FX_UTF8Encode (const CFX_WideString &wsStr) |
Encode a wide string into a UTF-8 string. More... | |
FX_BOOL | FX_IsUtf16SurrogatePair (FX_WCHAR first, FX_WCHAR second) |
Determines if the arguments constitute UTF-16 surrogate pair. More... | |
FX_DWORD | FX_CreateCodePointFromUtf16SurrogatePair (FX_WCHAR first, FX_WCHAR second) |
Creates a Unicode code point from UTF16 surrogate pair. More... | |
FX_BOOL | FX_CreateUtf16SurrogatePairFromCodePoint (FX_DWORD unicode, FX_WCHAR &first, FX_WCHAR &second) |
Creates UTF16 surrogate pair from a Unicode code point. More... | |
void | FX_UTF8Encode (FX_LPCWSTR pwsStr, FX_STRSIZE len, CFX_ByteStringL &utf8Str, IFX_Allocator *pAllocator=NULL) |
OS Defines | |
#define | _FX_WIN32_DESKTOP_ 1 |
Windows desktop OS (from Windows 95) | |
#define | _FX_WIN32_MOBILE_ 2 |
Windows Mobile OS (from Windows CE 4.0) | |
#define | _FX_WIN64_ 3 |
Windows 64 bit. | |
#define | _FX_LINUX_DESKTOP_ 4 |
Linux Desktop OS. | |
#define | _FX_LINUX_EMBEDDED_ 5 |
Embedded Linux OS. | |
#define | _FX_SYMBIAN_ 6 |
Symbian OS (from 7.0) | |
#define | _FX_MACOSX_ 7 |
MAC OS X. | |
#define | _FX_EMBEDDED_ 8 |
Embedded OS. | |
#define | _FX_SOLARIS_ 9 |
Solaris 8 or later. | |
#define | _FX_PALMOS_ 10 |
PalmOS (5.0 or later) | |
#define | _FX_NETBSD_ 11 |
NetBSD. | |
#define | _FX_ANDROID_ 12 |
Android. | |
#define | _FX_VXWORKS_ 13 |
VxWorks. | |
#define | _FX_MTK_ 14 |
Media Tech. | |
#define | _FX_IOS_ 15 |
IOS. | |
#define | _FXM_PLATFORM_WINDOWS_ 1 |
Windows OS platformas. | |
#define | _FXM_PLATFORM_LINUX_ 2 |
Linux OS platformas. | |
#define | _FXM_PLATFORM_APPLE_ 3 |
Apple OS platformas. | |
#define | _FXM_PLATFORM_ANDROID_ 4 |
Android OS platformas. | |
#define | _FXM_PLATFORM_ _FXM_PLATFORM_WINDOWS_ |
#define | _CRT_SECURE_NO_WARNINGS |
Disable the security enhancements in the CRT. | |
#define | NOMINMAX |
#define | _FX_WINAPI_PARTITION_DESKTOP_ |
Compiler Defines | |
#define | _FX_VC6_ 1 |
Microsoft Visual C++ 6.0. | |
#define | _FX_VC7_ 2 |
Microsoft Visual Studio.Net 2003. | |
#define | _FX_VC8_ 3 |
Microsoft Visual Studio.Net 2005. | |
#define | _FX_GCC_ 4 |
GNU C++ Compiler. | |
#define | _FX_ADS_ 5 |
ADS 1.2 Compiler. | |
#define | _FX_RVCT_ 6 |
RVCT 2.1 Compiler. | |
#define | _FX_IARCC_ 7 |
IAR C/C++ Compiler. | |
#define | _FX_NOKIA_X86_ 8 |
Nokia X86 Compiler. | |
#define | _FX_METROWERKS_ 9 |
Metrowerks C/C++ Compiler (with MSL) | |
#define | _FX_PACC_ 10 |
Protein C/C++ Compiler (used by PalmOS) | |
#define | _FX_TMS470_ 11 |
TMS470. | |
#define | _FX_MIPS_SDE_ 12 |
MIPS SDE. | |
CPU Defines | |
#define | _FX_X86_ 1 |
32-bit x86 CPU | |
#define | _FX_ARM_ 2 |
ARM. | |
#define | _FX_POWERPC_ 3 |
Power PCPower PC. | |
#define | _FX_SPARC_ 4 |
Sparc. | |
#define | _FX_IA64_ 5 |
IA64. | |
#define | _FX_MIPS_ 6 |
MIPS. | |
#define | _FX_X64_ 7 |
64-bit x86 CPU | |
#define | _FX_ARM64_ 8 |
ARM64. | |
#define | _FX_MIPS64_ 9 |
MIPS64. | |
Word Size Defines | |
#define | _FX_W32_ 1 |
32-bit instruct | |
#define | _FX_W64_ 2 |
64-bit instruct | |
#define | _FX_WORDSIZE_ _FX_W32_ |
Byte Order Defines | |
#define | _FX_BIG_ENDIAN_ 1 |
big endian | |
#define | _FX_LITTLE_ENDIAN_ 2 |
little endian | |
#define | _FX_ENDIAN_ |
Current Byte Order. More... | |
#define | GetObject |
Get object information. GetObjectW defined for unicode-mode, GetObjectA for ansi-mode. | |
#define | GetModuleFileName |
Get the fully-qualified path for specified module. GetModuleFileNameW defined for unicode-mode, GetModuleFileNameA for ansi-mode. | |
#define | GetFullPathName |
Get the full path and file name of a specified file. GetFullPathNameW defined for unicode-mode, GetFullPathNameA for ansi-mode. | |
Target Defines | |
#define | _FX_DEFAULT_TARGET_ 0 |
The default sdk information. | |
#define | _FX_BREW_ 1 |
Brew SDK. | |
#define | _FXM_SIMD_ |
#define | _FX_NO_OPENSSL_ |
#define | _FX_JPEG_TURBO_ |
#define | _FX_LARGEFILE_SUPPORT_ |
#define | WITH_SIMD |
#define | _FPDF_STREAM_RENDER_ |
#define | _FX_ENABLE_OVERPRINT_ |
BASIC DATA TYPES | |
typedef void * | FX_LPVOID |
Pointer to any type. | |
typedef void const * | FX_LPCVOID |
Pointer to any constant type. | |
typedef void * | FX_POSITION |
A value used to denote the position of an element in a collection. | |
typedef signed char | FX_INT8 |
Signed 8bits integer. | |
typedef unsigned char | FX_UINT8 |
Unsigned 8bits integer. | |
typedef unsigned char | FX_BYTE |
Byte (8 bits). | |
typedef unsigned char * | FX_LPBYTE |
Pointer to a FX_BYTE. | |
typedef unsigned char const * | FX_LPCBYTE |
Pointer to a constant FX_BYTE. | |
typedef short | FX_INT16 |
Signed 16bits integer. | |
typedef unsigned short | FX_UINT16 |
Unsigned 16bits integer. | |
typedef short | FX_SHORT |
Short integer (16 bits). | |
typedef unsigned short | FX_WORD |
16-bit unsigned integer. | |
typedef unsigned short * | FX_LPWORD |
Pointer to a WORD. | |
typedef unsigned short const * | FX_LPCWORD |
Pointer to a WORD. | |
typedef int | FX_INT32 |
32-bit signed integer. | |
typedef float | FX_FLOAT |
32-bit floating-point number. | |
typedef int | FX_BOOL |
Boolean variable (should be TRUE or FALSE). | |
typedef int | FX_ERR |
Error indicator. | |
typedef char | FX_CHAR |
8-bit Windows (ANSI) character. | |
typedef char * | FX_LPSTR |
Pointer to 8-bit Windows (ANSI) characters. | |
typedef char const * | FX_LPCSTR |
Pointer to constant 8-bit Windows (ANSI) characters. | |
typedef unsigned long | FX_DWORD |
32-bit unsigned integer. More... | |
typedef unsigned long * | FX_LPDWORD |
Pointer to a DWORD. | |
typedef wchar_t | FX_WCHAR |
Compiler dependant Unicode character (16-bit for Microsoft Compiler, 32-bit for gcc). | |
typedef wchar_t * | FX_LPWSTR |
Pointer to Unicode characters. | |
typedef wchar_t const * | FX_LPCWSTR |
Pointer to constant Unicode characters. | |
typedef long long int | FX_INT64 |
typedef unsigned long long | FX_UINT64 |
typedef INT_PTR | FX_INTPTR |
Signed integral type for pointer precision. | |
typedef UINT_PTR | FX_UINTPTR |
Unsigned integral type for pointer precision. | |
typedef FX_DWORD | FX_UINT32 |
unsigned 32bits integer. | |
typedef FX_UINT64 | FX_QWORD |
unsigned quad-word integer. | |
#define | FX_SUCCEEDED(Status) ((FX_ERR)(Status) >= 0) |
Determine whether a status is successful. | |
#define | FX_FAILED(Status) ((FX_ERR)(Status) < 0) |
Determine whether a status is failure. | |
#define | FX_DEFINEHANDLE(name) typedef struct _##name {FX_LPVOID pData;} * name; |
Macro to define a handle type. | |
#define | TRUE 1 |
Keyword which value is 1. | |
#define | FALSE 0 |
Keyword which value is 0. | |
#define | NULL 0 |
The null-pointer value. | |
#define | FXSYS_assert |
Assertion. | |
#define | ASSERT(a) |
Assertion for debug mode, do nothing for release mode. | |
#define | FX_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
A macro that returns the maximum of a and b. | |
#define | FX_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
A macro that returns the minimum of a and b. | |
#define | FX_PI 3.1415926535897932384626433832795f |
A macro to PI. | |
#define | _FX_CRT_MALLOC_LIMIT_ 0x7fffffffL |
A macrio to malloc size limit. | |
Byte string operations | |
#define | FXSYS_sprintf |
Write formatted data to a ANSIC string. | |
#define | FXSYS_snprintf |
Write formatted data to a ANSIC string, with max length. | |
#define | FXSYS_vsnprintf vsnprintf |
#define | FXSYS_vsprintf |
Write formatted output using a pointer to a list of arguments. | |
#define | FXSYS_strchr |
Find a character in a ANSIC string. | |
#define | FXSYS_strlen |
Get the length of a ANSIC string. | |
#define | FXSYS_strncmp |
Compare characters of two ANSIC strings. | |
#define | FXSYS_strcmp |
Compare ANSIC strings. | |
#define | FXSYS_strcpy |
Copy an ANSIC string. | |
#define | FXSYS_strncpy |
Copy an ANSIC string with length limitation. | |
#define | FXSYS_strstr |
Find a substring. | |
File operations | |
#define | FXSYS_FILE |
File structure. | |
#define | FXSYS_fopen |
Open a file. | |
#define | FXSYS_fclose |
Close a file. | |
#define | FXSYS_SEEK_END |
End of file. | |
#define | FXSYS_SEEK_SET |
Beginning of file. | |
#define | FXSYS_fseek |
Moves the file pointer to a specified location. | |
#define | FXSYS_ftell |
Gets the current position of a file pointer. | |
#define | FXSYS_fread |
Reads data from a file. | |
#define | FXSYS_fwrite |
Writes data to a file. | |
#define | FXSYS_fprintf |
Print formatted data to a file. | |
#define | FXSYS_fflush |
Flush file. | |
#define | FXSYS_wfopen |
Open a file using wide-string parameters. Only supported on Windows platforms now. | |
Wide string operations | |
#define | FXSYS_wcslen |
Get the length of a wide-character string. | |
#define | FXSYS_wcscmp |
Compare wide-character strings. | |
#define | FXSYS_wcschr |
Find a wide-character in a wide-character string. | |
#define | FXSYS_wcsstr |
Find a sub-wide-character-string. | |
#define | FXSYS_wcsncmp |
Compare characters of two wide-character strings. | |
#define | FXSYS_vswprintf |
Write formatted output wide character string using a pointer to a list of arguments. | |
#define | FXSYS_mbstowcs |
Converts a sequence of multi-byte characters to a corresponding sequence of wide characters. | |
#define | FXSYS_wcstombs |
Converts a sequence of wide characters to a corresponding sequence of multi-byte characters. | |
Memory block operations | |
#define | FXSYS_memcmp |
Compares two buffers. | |
#define | FXSYS_memcpy |
Copy from one buffer to another. | |
#define | FXSYS_memmove |
Moves one buffer to another. If some regions of the source area and the destination overlap, ::FXSYS_memmove ensures that the original source bytes in the overlapping region are copied before being overwritten. | |
#define | FXSYS_memset |
Use given character to initialize the buffer. | |
#define | FXSYS_memchr |
Search for a byte in a memory block. | |
#define | FXSYS_qsort |
Performs a quick sort. A generic algorithm. | |
#define | FXSYS_bsearch |
Performs a binary search of a sorted array. A generic algorithm. | |
#define | FXSYS_itoa |
Convert an integer to a ANSIC string. | |
#define | FXSYS_strlwr |
Convert a ANSIC string to lowercase. | |
#define | FXSYS_strupr |
Convert a ANSIC string to uppercase. | |
#define | FXSYS_stricmp |
Compare two ANSIC strings. case-insensitive. | |
#define | FXSYS_wcsicmp |
Compare two wide character strings. case-insensitive. | |
#define | FXSYS_WideCharToMultiByte |
Maps a wide-character string to a character string. | |
#define | FXSYS_MultiByteToWideChar |
Maps a character string to a wide-character string. | |
#define | FXSYS_wcslwr |
Convert a wide-character string to lowercase. | |
#define | FXSYS_wcsupr |
Convert a wide-character string to uppercase. | |
#define | FXSYS_GetFullPathName |
Get the full path and file name of a specified file. | |
#define | FXSYS_GetModuleFileName |
Get the fully-qualified path for specified module. | |
#define | FXSYS_GetACP |
Retrieve the current ANSI code-page identifier for the system. | |
Memory utilities | |
void * | FXSYS_memcpy32 (void *dst, const void *src, size_t size) |
Copy buffer data from source to destination. More... | |
FX_INT32 | FXSYS_memcmp32 (const void *buf1, const void *buf2, size_t size) |
Compare data in two buffers. More... | |
void * | FXSYS_memset32 (void *dst, FX_INT32 v, size_t size) |
Set buffer data to specified value. More... | |
void * | FXSYS_memset8 (void *dst, FX_BYTE v, size_t size) |
Set buffer data to specified value. More... | |
void * | FXSYS_memmove32 (void *dst, const void *src, size_t size) |
Move source buffer data into destination. More... | |
Math functions | |
typedef CRITICAL_SECTION | FX_MUTEX |
Definition for mutex/critical section and read-write lock. | |
typedef void * | FX_SPINLOCK |
Definition for spinlock. | |
FX_INT32 | FXSYS_atoi (FX_LPCSTR str) |
Convert an ANSI string to an integer. More... | |
FX_INT32 | FXSYS_wtoi (FX_LPCWSTR str) |
Convert a wide string to an integer. More... | |
FX_INT64 | FXSYS_atoi64 (FX_LPCSTR str) |
Convert an ANSI string to an integer. More... | |
FX_INT64 | FXSYS_wtoi64 (FX_LPCWSTR str) |
Convert a wide string to an integer. More... | |
FX_LPCSTR | FXSYS_i64toa (FX_INT64 value, FX_LPSTR str, int radix) |
Convert an integer to an ANSI string. More... | |
FX_LPCWSTR | FXSYS_i64tow (FX_INT64 value, FX_LPWSTR str, int radix) |
Convert an integer to an wide string. More... | |
int | FXSYS_round (FX_FLOAT f) |
Get nearest integer. More... | |
#define | FXSYS_pow |
Calculate the power. FXSYS_pow(x,y) means x^y. | |
#define | FXSYS_sqrt |
Calculate the square root. FXSYS_sqrt(x) means sqrt(x). | |
#define | FXSYS_fabs |
Calculate the absolute. FXSYS_fabs(x) means |x|. | |
#define | FXSYS_atan2 |
Calculate the arctangent. FXSYS_atan2(y,x) means atan(y/x). | |
#define | FXSYS_ceil |
Calculate the ceiling of a value. | |
#define | FXSYS_floor |
Calculate the floor of a value. | |
#define | FXSYS_cos |
Calculate the cosine of a floating-point number from a radian argument. | |
#define | FXSYS_acos |
Calculate the arccosine of a floating-point number, in radians. | |
#define | FXSYS_sin |
Calculate the sine of a floating-point number from a radian argument. | |
#define | FXSYS_log |
Calculate the natural logarithm (base e) of a floating-point number. | |
#define | FXSYS_log10 |
Calculate the common logarithm (base 10) of a floating-point number. | |
#define | FXSYS_fmod |
Calculate the floating-point remainder. | |
#define | FXSYS_abs |
A macro that return the absolute value. | |
#define | _FX_LSB_FIRST_ |
#define | FXDWORD_FROM_LSBFIRST(i) (i) |
#define | FXDWORD_FROM_MSBFIRST(i) ( ((FX_BYTE)(i) << 24) | ((FX_BYTE)((i) >> 8) << 16) | ((FX_BYTE)((i) >> 16) << 8) | (FX_BYTE)((i) >> 24) ) |
#define | FXDWORD_GET_LSBFIRST(p) ((((FX_LPBYTE)(p))[3] << 24) | (((FX_LPBYTE)(p))[2] << 16) | (((FX_LPBYTE)(p))[1] << 8) | (((FX_LPBYTE)(p))[0])) |
#define | FXDWORD_GET_MSBFIRST(p) ((((FX_LPBYTE)(p))[0] << 24) | (((FX_LPBYTE)(p))[1] << 16) | (((FX_LPBYTE)(p))[2] << 8) | (((FX_LPBYTE)(p))[3])) |
#define | FXSYS_HIBYTE(word) ((FX_BYTE)((word) >> 8)) |
#define | FXSYS_LOBYTE(word) ((FX_BYTE)(word)) |
#define | FXSYS_HIWORD(dword) ((FX_WORD)((dword) >> 16)) |
#define | FXSYS_LOWORD(dword) ((FX_WORD)(dword)) |
#define | FXSYS_strtol strtol |
Convert string to long integer. | |
#define | FXSYS_Mul(a, b) ((a) * (b)) |
Multiply two numbers. | |
#define | FXSYS_Div(a, b) ((a) / (b)) |
Division between two numbers. | |
#define | FXSYS_MulDiv(a, b, c) ((a) * (b) / (c)) |
Fist do multiplication, then do division. | |
#define | FXSYS_sqrt2(a, b) (FX_FLOAT)FXSYS_sqrt((a)*(a) + (b)*(b)) |
sqrt(a^2 + b^2). | |
#define | FX_CRITICAL_SECTION FX_MUTEX |
#define | FX_InitializeCriticalSection(a) FX_Mutex_Initialize(a) |
#define | FX_DeleteCriticalSection(a) FX_Mutex_Destroy(a) |
#define | FX_TryEnterCriticalSection(a) FX_Mutex_TryLock(a) |
#define | FX_EnterCriticalSection(a) FX_Mutex_Lock(a) |
#define | FX_LeaveCriticalSection(a) FX_Mutex_Unlock(a) |
#define _FX_ENDIAN_ |
Current Byte Order.
Now it can be:
#define FX_BSTRC | ( | str | ) | CFX_ByteStringC(str, sizeof str-1) |
All application should use the following macro when specifying a string constant. "str" must be a character string constant.
#define FX_WSTRC | ( | wstr | ) | CFX_WideStringC((FX_LPCWSTR)wstr, sizeof(wstr) / sizeof(FX_WCHAR) - 1) |
All application should use the following macro when specifying a wide string constant. "wstr" must be a wide string constant.
For example:
typedef void(* FPDF_OOM_Handler) (FXMEM_FoxitMgr *pFoxitMgr, void *param) |
the prototype of the Out-Of-Memory handler.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | param | A generic typeless pointer for user data. |
typedef FX_ThreadResult( WINAPI * FX_CALLBACK_ThreadProc) (FX_LPVOID param) |
Callback function of thread procedure.
param[in] param Thread parameter transfered when create thread.
typedef FX_ThreadResult( WINAPI * FX_CALLBACK_ThreadProxyProc) (FX_CALLBACK_ThreadProc threadProc, FX_LPVOID param) |
Callback function of thread proxy procedure.
param[in] param Thread parameter transfered when create thread.
typedef unsigned long FX_DWORD |
32-bit unsigned integer.
TYPE LP32 ILP32 LP64 ILP64 LLP64 CHAR 8 8 8 8 8 SHORT 16 16 16 16 16 INT 16 32 32 64 32 LONG 32 32 64 64 32 LONG LONG 64 64 64 64 64 POINTER 32 32 64 64 64
typedef void(* PD_CALLBACK_FREEDATA) (FX_LPVOID pData) |
Prototype of callback function provided by custom module for deallocating private data.
enum FX_ProgressiveStatus |
|
explicit |
Construct from a single character.
[in] | ch | A single character. |
CFX_ByteString::CFX_ByteString | ( | const CFX_ByteString & | str | ) |
Copy constructor.
[in] | str | A constant ref to a CFX_ByteString object. |
CFX_ByteString::CFX_ByteString | ( | FX_BSTR | bstrc | ) |
Construct from a constant ref to a CFX_ByteStringC object.
[in] | bstrc | A constant ref to a CFX_ByteStringC object. |
Concatenate constructor.
[in] | bstrc1 | Fist constant ref to a CFX_ByteStringC object. |
[in] | bstrc2 | Second constant ref to a CFX_ByteStringC object. |
CFX_ByteString::CFX_ByteString | ( | FX_LPCBYTE | ptr, |
FX_STRSIZE | len | ||
) |
Construct from a byte string.
[in] | ptr | Pointer to a constant byte string. |
[in] | len | The length of the byte string. |
CFX_ByteString::CFX_ByteString | ( | FX_LPCSTR | ptr, |
FX_STRSIZE | len = -1 |
||
) |
Construct from a character string.
[in] | ptr | Pointer to a constant character string. |
[in] | len | The length of the character string. len can be -1 for zero terminated string. |
|
inline |
Construct from a byte string.
[in] | src | constant ref to a CFX_ByteString object. |
|
inline |
Copy constructor.
[in] | src | constant ref to a CFX_ByteStringC object. |
|
inlineexplicit |
Construct from a single character.
[in] | ch | A single character. |
|
inline |
Constructs from a byte string.
[in] | ptr | Pointer to a constant byte string. |
[in] | size | The length of the byte string. |
|
inline |
Construct from a character string.
[in] | ptr | Pointer to a constant character string, the string must be null-terminated. |
|
inline |
Construct from a character string.
[in] | ptr | Pointer to a constant character string. |
[in] | len | The length of the character string. This can be -1 for null-terminated string. |
CFX_ChunkFileStreamsManager::CFX_ChunkFileStreamsManager | ( | IFX_FileStream * | pFileStream, |
size_t | nChunkSize = 1024 |
||
) |
Construct the Chunk-Based file stream manager.
[in] | pFileStream | Pointer to the file stream on which this manager manages the chunked reads and writes. |
[in] | nChunkSize | The chunk size. |
|
inlineexplicit |
A Constructor.
[in] | limit | buffer limit. |
CFX_WideString::CFX_WideString | ( | const CFX_WideString & | str | ) |
Copy constructor.
[in] | str | A constant ref to a CFX_WideString object. |
CFX_WideString::CFX_WideString | ( | const CFX_WideStringC & | str | ) |
Construct from a constant ref to a CFX_WideStringC object.
[in] | str | A constant ref to a CFX_WideStringC object. |
CFX_WideString::CFX_WideString | ( | const CFX_WideStringC & | str1, |
const CFX_WideStringC & | str2 | ||
) |
Concatenate constructor.
[in] | str1 | Fist constant ref to a CFX_WideStringC object. |
[in] | str2 | Second constant ref to a CFX_WideStringC object. |
|
inline |
Construct from a wide character string.
[in] | ptr | Pointer to a constant wide character string. |
[in] | len | The length of the wide character string. This can be -1 for zero terminated wide character string. |
CFX_WideString::CFX_WideString | ( | FX_WCHAR | ch | ) |
Construct from a single wide character.
[in] | ch | A single wide character. |
|
inline |
Construct from a wide string.
[in] | src | constant ref to a CFX_ByteString object. |
|
inline |
Copy constructor.
[in] | src | constant ref to a CFX_WideStringC object. |
|
inline |
Construct from a character string.
[in] | ptr | Pointer to a constant character string, the string must be null-terminated. |
|
inline |
Construct from a character string.
[in] | ptr | Pointer to a constant character string. |
[in] | len | The length of the character string. This can be -1 for null-terminated string. |
|
inline |
Construct from a single character.
[in] | ch | A single character. |
CFX_ByteString::~CFX_ByteString | ( | ) |
Destructor.
CFX_ChunkFileStreamsManager::~CFX_ChunkFileStreamsManager | ( | ) |
Destructor.
void CFX_StringBufBase::Append | ( | FX_BSTR | str | ) |
Append a non-buffered byte string.
[in] | str | A non-buffered byte string. |
void CFX_StringBufBase::Append | ( | int | i, |
FX_DWORD | flags = 0 |
||
) |
Append an integer. See FXFORMAT_xxx for flags.
[in] | i | The input integer. |
[in] | flags | The formating flags. |
|
pure virtual |
Attach a memory buffer.
[in] | pBuffer | Memory buffer to attach. |
[in] | nSize | Buffer size, in bytes. |
[in] | bTakeOver | Indicates whether need free attached memory buffer(pBuffer) when memory stream is to be released. Default value: false |
FX_BOOL CFX_CachedFileRead::AttachFile | ( | IFX_FileRead * | pFile, |
FX_BOOL | bTakeOver | ||
) |
Attach a file read.
[in] | pFile | The file to be attached. |
[in] | bTakeOver | Take over the file or not. |
|
inlinevirtual |
Clear accessing range set by function IFX_FileRead::SetRange.
int CFX_WideString::Compare | ( | const CFX_WideString & | str | ) | const |
Compare the the string with another. Case-sensitive.
[in] | str | The wide string to be compared. |
int CFX_ByteString::Compare | ( | FX_BSTR | str | ) | const |
Compare the the string with another. Case-sensitive.
[in] | str | The byte string to be compared. |
int CFX_WideString::Compare | ( | FX_LPCWSTR | str | ) | const |
Compare current string with a wide character string. Case-sensitive.
[in] | str | The wide character string to be compared. |
int CFX_WideString::CompareNoCase | ( | FX_LPCWSTR | str | ) | const |
Compare the the string with a wide character string. No case-insensitive.
[in] | str | The wide character string to be compared. |
void CFX_WideString::ConvertFrom | ( | const CFX_ByteString & | str, |
CFX_CharMap * | pCharMap = NULL |
||
) |
Load MBCS data into this wide string, using specified character mapper.
If no character mapper specified, the system default mapper will be used.
[in] | str | A byte string. |
[in] | pCharMap | A character mapper. |
void CFX_ByteString::ConvertFrom | ( | const CFX_WideString & | str, |
CFX_CharMap * | pCharMap = NULL |
||
) |
Load unicode data into this byte string, using specified character mapper. If no character mapper specified, the system default mapper will be used.
[in] | str | The input unicode string. |
[in] | pCharMap | Specified character mapper to be used for converting. |
void CFX_StringBufBase::Copy | ( | FX_BSTR | str | ) |
Copy from a non-buffered byte string.
[in] | str | A no-buffered byte string. |
IFX_ChunkFileStream* CFX_ChunkFileStreamsManager::CreateChunkFileStream | ( | ) |
Create a Chunk-Based file stream.
|
pure virtual |
Create IFX_FileStream to operate file.
[in] | dwModes | Open file mode. |
FX_STRSIZE CFX_ByteString::Delete | ( | FX_STRSIZE | index, |
FX_STRSIZE | count = 1 |
||
) |
Delete one or more characters starting from specific position.
[in] | index | Specifies the zero-based index in the byte string for starting deleting. |
[in] | count | Count of bytes to be deleted. |
FX_STRSIZE CFX_WideString::Delete | ( | FX_STRSIZE | index, |
FX_STRSIZE | count = 1 |
||
) |
Delete one or more wide characters starting from specific position.
[in] | index | Specifies the zero-based index in the wide string for starting deleting. |
[in] | count | Count of wide characters to be deleted. |
|
pure virtual |
Detach the current memory buffer.
void CFX_ByteString::Empty | ( | ) |
Set this string to be empty.
|
inline |
Set this string to be empty.
void CFX_WideString::Empty | ( | ) |
Set this string to be empty.
bool CFX_WideString::Equal | ( | const CFX_WideStringC & | str | ) | const |
Check if current string is equal to another.
This function os faster than CFX_WideString::Comparewhen only need to check whether two strings are equal.
[in] | str | The wide string to be compared. |
bool CFX_ByteString::Equal | ( | FX_BSTR | str | ) | const |
Check if current string is equal to another one. Case-sensitive.
This function is faster than function CFX_ByteString::Compare if only need to check whether two strings are equal.
[in] | str | The byte string to be compared. |
bool CFX_ByteString::EqualNoCase | ( | FX_BSTR | str | ) | const |
Check if current string is equal to another one, not considering case.
This function will treat letters 'A'-'Z' just same as 'a'-'z'.
[in] | str | The byte string to be compared. |
|
pure virtual |
Change initialize size and grow size.
[in] | nInitSize | Initial size for memory block. |
[in] | nGrowSize | Grow up size for next change when write data. |
FX_STRSIZE CFX_ByteString::Find | ( | FX_BSTR | lpszSub, |
FX_STRSIZE | start = 0 |
||
) | const |
Find a sub-string, from specific position. Only first occurrence is found.
[in] | lpszSub | The sub-string to be found. |
[in] | start | Specifies the zero-based index of the starting position to do finding. |
The | position where first occurrence is found. -1 means not found. |
FX_STRSIZE CFX_ByteString::Find | ( | FX_CHAR | ch, |
FX_STRSIZE | start = 0 |
||
) | const |
Find a character, from specific position. Only first occurrence is found.
[in] | ch | The character to be found. |
[in] | start | Specifies the zero-based index of the starting position to do finding. |
The | position where first occurrence is found. -1 means not found. |
FX_STRSIZE CFX_WideString::Find | ( | FX_LPCWSTR | lpszSub, |
FX_STRSIZE | start = 0 |
||
) | const |
Find a sub-string, from specific position. Only first occurrence is found.
[in] | lpszSub | The sub-string to be found. |
[in] | start | Specifies the zero-based index of the starting position to do finding. Default value: 0. |
FX_STRSIZE CFX_WideString::Find | ( | FX_WCHAR | ch, |
FX_STRSIZE | start = 0 |
||
) | const |
Find a character, from specific position. Only first occurrence is found.
[in] | ch | The character to be found. |
[in] | start | Specifies the zero-based index of the starting position to do finding.Default value: 0. |
|
inlinevirtual |
Flush stream data.
Reimplemented in IFX_ChunkFileStream, IFX_FileStream, IFX_FileWrite, and CFX_CachedFileRead.
|
pure virtual |
Flush internal buffer of the file.
Reimplemented from IFX_StreamWrite.
Implemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
pure virtual |
Flush internal buffer.
Implements IFX_FileWrite.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Flush internal buffer.
Implements IFX_FileStream.
void CFX_ByteString::Format | ( | FX_LPCSTR | lpszFormat, |
... | |||
) |
Format a number of parameters into this byte string.
On desktop platforms, this function supports all the sprintf() formats.
On embedded platforms, it supports only a subset of formats:
[in] | lpszFormat | Specifies a format-control string. |
void CFX_WideString::Format | ( | FX_LPCWSTR | lpszFormat, |
... | |||
) |
Format a number of parameters into this wide string.
[in] | lpszFormat | Specifies a format-control string. |
|
static |
Convert from floating-point number.
[in] | f | The input floating-point number. |
[in] | precision | The number of decimal digits. Not used. Default value: 0. |
|
static |
Convert from Integer.
The flags can be following flags (single or compound):
[in] | i | The input 32-bit integer. |
[in] | flags | The formating flags. Default value: 0. |
void CFX_ByteString::FormatV | ( | FX_LPCSTR | lpszFormat, |
va_list | argList | ||
) |
Format a number of parameters into this byte string, using va_list.
[in] | lpszFormat | Specifies a format-control string. |
[in] | argList | Variable-argument lists. |
void CFX_WideString::FormatV | ( | FX_LPCWSTR | lpszFormat, |
va_list | argList | ||
) |
Format a number of parameters into this wide string. using va_list.
[in] | lpszFormat | Specifies a format-control string. |
[in] | argList | Variable-argument lists. |
|
static |
Create a wide string from system multi-byte charset.
[in] | str | a multi-byte charset string. |
[in] | len | The length in bytes of the multi-byte charset string. This can be -1 for zero terminated multi-byte charset string. |
|
static |
Create a CFX_ByteString object from a CFX_WideString object.
[in] | str | A ref to a constant CFX_WideString object. |
|
static |
Create a CFX_ByteString object from a Unicode string. Convert from Unicode to system multi-byte charset.
[in] | ptr | Pointer to a constant Unicode string. |
[in] | len | The length of the Unicode string. len can be -1 for zero terminated Unicode string. |
|
static |
Create a wide string from UTF16BE encoded string.
[in] | str | A UTF16BE encoded string. |
[in] | len | The length in bytes of the UTF16BE encoded string. This can be -1 for zero terminated UTF16BE string. |
|
static |
Create a wide string from UTF16LE encoded string.
[in] | str | A UTF16LE encoded string. |
[in] | len | The length in bytes of the UTF16LE encoded string. This can be -1 for zero terminated UTF16LE string. |
|
static |
Create a wide string from UTF-8 string (ASCII string compatible).
[in] | str | A UTF8 string. |
[in] | len | The length in bytes of the UTF8 string. This can be -1 for zero terminated UTF8 string. |
Convert a non-buffered byte string to a floating-point number.
[in] | str | A non-buffered byte string. |
Increase 32-bits integer value.
[in,out] | pAddend | Pointer to 32-bits integer to increase value. |
[in] | nIncrement | Increment value to be added to pAddend. |
FX_INT64 FX_Atom_Add64 | ( | volatile FX_INT64 * | pAddend, |
FX_INT64 | nIncrement | ||
) |
Increase 64-bits integer value.
[in,out] | pAddend | Pointer to 64-bits integer to increase value. |
[in] | nIncrement | Increment value to be added to pAddend. |
Decrease 32-bits integer value.
[in,out] | pAddend | Pointer to 32-bits integer to decrease value. |
[in] | nDecrement | Decrement value to be subtracted from pAddend. |
FX_INT64 FX_Atom_Subtract64 | ( | volatile FX_INT64 * | pAddend, |
FX_INT64 | nDecrement | ||
) |
Decrease 64-bits integer value.
[in,out] | pAddend | Pointer to 64-bits integer to decrease value. |
[in] | nDecrement | Decrement value to be subtracted from pAddend. |
Convert a non-buffered byte string to a number.
[in] | str | A non-buffered byte string. |
[out] | bInteger | Non-zero values means the string can convert to a number, otherwise can not. |
[out] | pData | It receives the converted number. |
[in] | sizeOfData | Size of pData. Default value: 4. |
void FX_CloseFolder | ( | void * | handle | ) |
Close folder handle.
[in] | handle | folder handle returned by FX_OpenFolder function. |
Creates a Unicode code point from UTF16 surrogate pair.
[in] | first | First value of a UTF16 surrogate pair. |
[in] | second | Second value of a UTF16 surrogate pair. |
IFX_FileAccess* FX_CreateDefaultFileAccess | ( | FX_WSTR | wsPath, |
IFX_Allocator * | pAllocator = 0 |
||
) |
Create a CRT based file I/O interface.
[in] | wsPath | File path. |
[in] | pAllocator | An allocator. Default value: NULL. |
IFX_FileRead* FX_CreateFileRead | ( | FX_LPCSTR | filename, |
IFX_Allocator * | pAllocator = 0 |
||
) |
(Available only for platforms supporting CRT file access) Create a CRT based file reading interface.
[in] | filename | File name, using MBCS file name. |
[in] | pAllocator | An allocator. Default value: NULL. |
IFX_FileRead* FX_CreateFileRead | ( | FX_LPCWSTR | filename, |
IFX_Allocator * | pAllocator = 0 |
||
) |
(Available only for platforms supporting CRT file access) Create a CRT based file reading interface.
[in] | filename | File name, using Unicode file name. |
[in] | pAllocator | An allocator. Default value: NULL. |
IFX_FileStream* FX_CreateFileStream | ( | FX_LPCSTR | filename, |
FX_DWORD | dwModes, | ||
IFX_Allocator * | pAllocator = 0 |
||
) |
(Available only for platforms supporting CRT file access) Create a CRT based file I/O interface.
filename | File name, using MBCS file name. |
dwModes | |
pAllocator | An allocator. Default value: NULL. |
IFX_FileStream* FX_CreateFileStream | ( | FX_LPCWSTR | filename, |
FX_DWORD | dwModes, | ||
IFX_Allocator * | pAllocator = 0 |
||
) |
(Available only for platforms supporting CRT file access) Create a CRT based file I/O interface.
filename | File name, using Unicode file name. |
dwModes | |
pAllocator | An allocator. Default value: NULL. |
IFX_FileWrite* FX_CreateFileWrite | ( | FX_LPCSTR | filename, |
IFX_Allocator * | pAllocator = 0 |
||
) |
(Available only for platforms supporting CRT file access (fopen, ...)) Create a CRT based file writing interface.
[in] | filename | File name, using MBCS file name. |
[in] | pAllocator | An allocator. Default value: NULL. |
IFX_FileWrite* FX_CreateFileWrite | ( | FX_LPCWSTR | filename, |
IFX_Allocator * | pAllocator = 0 |
||
) |
(Available only for platforms supporting CRT file access (fopen, ...)) Create a CRT based file writing interface.
[in] | filename | File name, using unicode file name. |
[in] | pAllocator | An allocator. Default value: NULL. |
Create new folder.
[in] | path | path name of folder. |
FX_BOOL FX_CreateFolder | ( | FX_LPCWSTR | path | ) |
Create new folder.
[in] | path | path name of folder. |
IFX_MemoryStream* FX_CreateMemoryStream | ( | FX_BOOL | bConsecutive = false , |
IFX_Allocator * | pAllocator = 0 |
||
) |
Create a memory stream object. Memory buffer will be created internally, and the size will increase when need more space.
[in] | bConsecutive | Indicates whether to create a consecutive memory stream. true means to create a consecutive memory stream, while false means to create a non-consecutive stream. Default value: false. |
[in] | pAllocator | Pointer to IFX_Allocator object which specifies an allocator. NULL means to use default allocator. Default value: NULL. |
IFX_MemoryStream* FX_CreateMemoryStream | ( | FX_LPBYTE | pBuffer, |
size_t | nSize, | ||
FX_BOOL | bTakeOver = false , |
||
IFX_Allocator * | pAllocator = 0 |
||
) |
Creates a stream object by a given memory buffer. This function creates a consecutive memory stream object.
[in] | pBuffer | A memory buffer to read/write data. |
[in] | nSize | Buffer size, in bytes. |
[in] | bTakeOver | Indicates whether need to take over parameter pBuffer. If this is true, parameter pBuffer will release internally when destroy returned IFX_MemoryStream object. Default value: false. |
[in] | pAllocator | Pointer to IFX_Allocator object, this specifies an allocator. If this is NULL, default allocator is used. Default value: NULL. |
|
inline |
Creates UTF16 surrogate pair from a Unicode code point.
[in] | unicode | The Unicode code point. |
[out] | first | First value of a UTF16 surrogate pair. |
[out] | second | Second value of a UTF16 surrogate pair. |
CFX_WideString FX_DecodeURI | ( | const CFX_ByteString & | bsURI | ) |
A simple URI Decode.
[in] | bsURI | A URI string to be decoded. |
CFX_ByteString FX_EncodeURI | ( | const CFX_WideString & | wsURI | ) |
A simple URI encode.
[in] | wsURI | A URI string to be encoded. |
void FX_File_Close | ( | FX_HFILE | hFile, |
IFX_Allocator * | pAllocator = 0 |
||
) |
Close file.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[in] | pAllocator | An allocator. Default value: NULL. |
Copy file.
[in] | fileNameSrc | Source file path name. |
[in] | fileNameDst | Destination file path name. |
Copy file.
[in] | fileNameSrc | Source file path name. |
[in] | fileNameDst | Destination file path name. |
Delete file.
[in] | fileName | File path name. |
Delete file.
[in] | fileName | File path name. |
Determine whether a file exists or not.
[in] | fileName | File path name. |
Determine whether a file exists or not.
[in] | fileName | File path name. |
FX_BOOL FX_File_Flush | ( | FX_HFILE | hFile | ) |
Flush internal buffer if need.
[in] | hFile | File handler returned by function ::FX_File_Open. |
FX_INT64 FX_File_GetPosition | ( | FX_HFILE | hFile | ) |
Get the current file accessing position.
[in] | hFile | File handler returned by function ::FX_File_Open. |
FX_INT64 FX_File_GetSize | ( | FX_HFILE | hFile | ) |
Get file size.
[in] | hFile | File handler returned by function ::FX_File_Open. |
Move file.
[in] | fileNameSrc | Source file path name. |
[in] | fileNameDst | Destination file path name. |
Move file.
[in] | fileNameSrc | Source file path name. |
[in] | fileNameDst | Destination file path name. |
FX_HFILE FX_File_Open | ( | FX_BSTR | fileName, |
FX_DWORD | dwMode, | ||
IFX_Allocator * | pAllocator = 0 |
||
) |
Open file with specified accessing mode.
[in] | fileName | File path name which specifies a file to be opened. |
[in] | dwMode | File accessing mode. Please refer to values starting from ::FX_FILEMODE_Write and this should be one of these values. |
[in] | pAllocator | An allocator. Default value: NULL. |
FX_HFILE FX_File_Open | ( | FX_WSTR | fileName, |
FX_DWORD | dwMode, | ||
IFX_Allocator * | pAllocator = 0 |
||
) |
Open file with specified accessing mode.
[in] | fileName | File path name which specifies a file to be opened. |
[in] | dwMode | File accessing mode. Please refer to values starting from ::FX_FILEMODE_Write and this should be one of these values. |
[in] | pAllocator | An allocator. Default value: NULL. |
size_t FX_File_Read | ( | FX_HFILE | hFile, |
void * | pBuffer, | ||
size_t | szBuffer | ||
) |
Read data from the current file accessing position.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[out] | pBuffer | Buffer to receive data. |
[in] | szBuffer | Buffer size, in bytes. |
size_t FX_File_ReadPos | ( | FX_HFILE | hFile, |
void * | pBuffer, | ||
size_t | szBuffer, | ||
FX_INT64 | pos | ||
) |
Read data from specified position.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[out] | pBuffer | Buffer to receive data. |
[in] | szBuffer | Buffer size, in bytes. |
[in] | pos | Position from which to read data, from the beginning of file. |
FX_INT64 FX_File_SetPosition | ( | FX_HFILE | hFile, |
FX_INT64 | pos | ||
) |
Set the current file accessing position.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[in] | pos | The new accessing position. |
FX_BOOL FX_File_Truncate | ( | FX_HFILE | hFile, |
FX_INT64 | szFile | ||
) |
Truncate file size.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[in] | szFile | New file size. |
size_t FX_File_Write | ( | FX_HFILE | hFile, |
const void * | pBuffer, | ||
size_t | szBuffer | ||
) |
Write data from the current file accessing position.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[in] | pBuffer | Buffer of data. |
[in] | szBuffer | Data size, in bytes. |
size_t FX_File_WritePos | ( | FX_HFILE | hFile, |
const void * | pBuffer, | ||
size_t | szBuffer, | ||
FX_INT64 | pos | ||
) |
Write data at specified position.
[in] | hFile | File handler returned by function ::FX_File_Open. |
[in] | pBuffer | Buffer of data. |
[in] | szBuffer | Data size, in bytes. |
[in] | pos | Position from which to write data, from the beginning of file. |
FX_STRSIZE FX_ftoa | ( | FX_FLOAT | f, |
FX_LPSTR | buf, | ||
int | precision = 0 |
||
) |
Convert float to byte string.
[in] | f | Float number. |
[out] | buf | Buffer of float string, buf should have 32 bytes at least. |
[in] | precision | The number of decimal digits. Default value: 0. |
FX_WCHAR FX_GetFolderSeparator | ( | ) |
Get folder separator for the system. Most likely it's either /' or '\'.
FX_BOOL FX_GetNextFile | ( | void * | handle, |
CFX_ByteString & | filename, | ||
FX_BOOL & | bFolder, | ||
FX_LPCSTR | absPath = 0 |
||
) |
Read next entry in the folder.
[in] | handle | Folder handle returned by function ::FX_OpenFolder. |
[out] | filename | Receives file name when find a folder item. |
[out] | bFolder | Indicates filename is a sub-folder or normal file. |
[in] | absPath | Absolute path. Default value: NULL. |
FX_BOOL FX_GetNextFile | ( | void * | handle, |
CFX_WideString & | filename, | ||
FX_BOOL & | bFolder, | ||
FX_LPCSTR | absPath = 0 |
||
) |
Read next entry in the folder.
[in] | handle | Folder handle returned by function ::FX_OpenFolder. |
[out] | filename | Receives file name when find a folder item. |
[out] | bFolder | Indicates filename is a sub-folder or normal file. |
[in] | absPath | Absolute path. Default value: NULL. |
FX_BOOL FX_IsFilePathExist | ( | FX_LPCWSTR | path | ) |
Check if the path exists, including file path and folder path.
[in] | path | Path name of file or folder. |
FX_BOOL FX_IsRectAdjacent | ( | const CFX_FloatRect & | rect1, |
const CFX_FloatRect & | rect2, | ||
FX_FLOAT | alignmentTolerance, | ||
FX_FLOAT | distanceTolerance, | ||
int | direction | ||
) |
Check if a rectangle is adjacent to the other rectangle in the horizontal or vertical direction.
[in] | rect1 | A rectangle which is to be check if adjacent to parameter rect2. |
[in] | rect2 | The other rectangle. |
[in] | alignmentTolerance | Alignment tolerance to be allowed between two rectangles. Measured in coordinate units, and should be non-negative value. |
[in] | distanceTolerance | Distance tolerance to be allowed between two rectangles. Measured in coordinate units, and should be non-negative value. |
[in] | direction | Specify a direction to judge adjacent state between two rectangles:
|
Determines if the arguments constitute UTF-16 surrogate pair.
[in] | first | First value of a UTF16 surrogate pair. |
[in] | second | Second value of a UTF16 surrogate pair. |
void FX_Mutex_Destroy | ( | FX_MUTEX * | pMutex | ) |
Destroy a mutex.
[in] | pMutex | Pointer to a mutex to be destroyed. Must be not a NULL pointer. |
Initialize a mutex.
[in] | pMutex | Pointer to a mutex which need to be initialized. Must be not a NULL pointer. |
void FX_Mutex_Lock | ( | FX_MUTEX * | pMutex | ) |
Lock a mutex.
[in] | pMutex | Pointer to a mutex. Must be not a NULL pointer. |
Try to lock a mutex.
[in] | pMutex | Pointer to a mutex. Must be not a NULL pointer. |
void FX_Mutex_Unlock | ( | FX_MUTEX * | pMutex | ) |
Unlock a mutex.
[in] | pMutex | Pointer to a mutex. Must be not a NULL pointer. |
void* FX_OpenFolder | ( | FX_LPCSTR | path | ) |
Open a folder for reading.
[in] | path | Path name of folder. |
void* FX_OpenFolder | ( | FX_LPCWSTR | path | ) |
Open a folder for reading.
[in] | path | Path name of folder. |
void FX_Process_Finalize | ( | ) |
Finalize process.
CFX_ProcessContext* FX_Process_GetContext | ( | ) |
Retrieve process context.
FX_PROCESSID FX_Process_GetID | ( | ) |
Get the current process ID.
Get private data in the current process.
[in] | key | Key value to specify private data to be retrieved. |
void FX_Process_Initialize | ( | ) |
Initialize process.
void FX_Process_RemovePrivateData | ( | FX_LPVOID | key | ) |
Remove private data in the current process.
[in] | key | Key value to specify private data to be removed. |
void FX_Process_SetPrivateData | ( | FX_LPVOID | key, |
FX_LPVOID | data, | ||
PD_CALLBACK_FREEDATA | callback | ||
) |
Set private data in the current process.
[in] | key | Key value to specify private data to be set. |
[in] | data | Pointer to private data. |
[in] | callback | Callback function address which is used to free private data, pass NULL if need no additional process to free private data. |
void FX_RWLock_Destroy | ( | FX_RWLOCK * | pRWLock | ) |
Destroy a read-write lock.
[in] | pRWLock | Pointer to a read-write lock to be destroyed. Must be not a NULL pointer. |
FX_BOOL FX_RWLock_Initialize | ( | FX_RWLOCK * | pRWLock | ) |
Initialize a read-write lock.
[in] | pRWLock | Pointer to a read-write lock which need to be initialized. Must be not a NULL pointer. |
void FX_RWLock_ReadLock | ( | FX_RWLOCK * | pRWLock | ) |
Lock for share read.
[in] | pRWLock | Pointer to a read-write lock. Must be not a NULL pointer. |
void FX_RWLock_ReadUnlock | ( | FX_RWLOCK * | pRWLock | ) |
Unlock for share read.
[in] | pRWLock | Pointer to a read-write lock. Must be not a NULL pointer. |
FX_BOOL FX_RWLock_TryReadLock | ( | FX_RWLOCK * | pRWLock | ) |
Try to lock for share read.
[in] | pRWLock | Pointer to a read-write lock. Must be not a NULL pointer. |
FX_BOOL FX_RWLock_TryWriteLock | ( | FX_RWLOCK * | pRWLock | ) |
Try to lock for exclusive write.
[in] | pRWLock | Pointer to a read-write lock. Must be not a NULL pointer. |
void FX_RWLock_WriteLock | ( | FX_RWLOCK * | pRWLock | ) |
Lock for exclusive write.
[in] | pRWLock | Pointer to a read-write lock. Must be not a NULL pointer. |
void FX_RWLock_WriteUnlock | ( | FX_RWLOCK * | pRWLock | ) |
Unlock for exclusive write.
[in] | pRWLock | Pointer to a read-write lock. Must be not a NULL pointer. |
void FX_SpinLock_Destroy | ( | FX_SPINLOCK * | pSpinLock | ) |
Destroy a spin lock.
[in] | pSpinLock | Pointer to a spin lock to be destroyed. |
FX_BOOL FX_SpinLock_Initialize | ( | FX_SPINLOCK * | pSpinLock | ) |
Initialize a spin lock.
[in] | pSpinLock | Pointer to a spin lock to be initialized. |
FX_BOOL FX_SpinLock_IsLocked | ( | FX_SPINLOCK * | pSpinLock | ) |
Determine whether specified spin lock is locked or not.
[in] | pSpinLock | Pointer to a spin lock. |
void FX_SpinLock_Lock | ( | FX_SPINLOCK * | pSpinLock | ) |
Lock a spin lock.
[in] | pSpinLock | Pointer to a spin lock. |
FX_BOOL FX_SpinLock_TryLock | ( | FX_SPINLOCK * | pSpinLock | ) |
Try to lock a spin lock.
[in] | pSpinLock | Pointer to a spin lock. |
void FX_SpinLock_Unlock | ( | FX_SPINLOCK * | pSpinLock | ) |
Unlock a spin lock.
[in] | pSpinLock | Pointer to a spin lock. |
FX_HTHREAD FX_Thread_Create | ( | FX_INT32 | nPriority, |
size_t | szStack, | ||
FX_CALLBACK_ThreadProc | threadProc, | ||
FX_LPVOID | param | ||
) |
Create a new thread.
[in] | nPriority | Thread priority. |
[in] | szStack | Stack size of thread, set to 0 for default stack size. |
[in] | threadProc | Thread callback function. |
[in] | param | Parameter passed to thread procedure. |
void FX_Thread_Exit | ( | ) |
Exit from the current thread.
CFX_ThreadContext* FX_Thread_GetContext | ( | ) |
Get the current thread context.
CFX_ExceptionContext* FX_Thread_GetExceptionContext | ( | ) |
Get the current thread exception context.
FX_HTHREAD FX_Thread_GetHandle | ( | ) |
Get the current thread handle.
FX_THREADHANDLER* FX_Thread_GetHandler | ( | ) |
Get the current thread handler.
FX_INT32 FX_Thread_GetLastError | ( | ) |
Get the last error code in the current thread.
FX_INT32 FX_Thread_GetPriority | ( | FX_HTHREAD | hThread | ) |
Get thread priority.
[in] | hThread | Thread handle specifies a thread to retrieve its priority. |
Get private data in the current thread.
[in] | key | Key value to specify private data to be retrieved. |
void FX_Thread_RemovePrivateData | ( | FX_LPVOID | key | ) |
Remove private data in the current thread.
[in] | key | Key value to specify private data to be removed. |
void FX_Thread_SetHandler | ( | FX_THREADHANDLER * | pThreadHandler | ) |
Set the current thread handler.
[in] | pThreadHandler | Pointer to external thread handler. |
void FX_Thread_SetLastError | ( | FX_INT32 | nErr | ) |
Set the last error code in the current thread.
[in] | nErr | The last error code to be set. |
void FX_Thread_SetPriority | ( | FX_HTHREAD | hThread, |
FX_INT32 | nPriority | ||
) |
Set thread priority.
[in] | hThread | Thread handle specifies a thread to change its priority. |
[in] | nPriority | Thread priority code. |
void FX_Thread_SetPrivateData | ( | FX_LPVOID | key, |
FX_LPVOID | data, | ||
PD_CALLBACK_FREEDATA | callback | ||
) |
Set private data in the current thread.
[in] | key | Key value to specify private data to be set. |
[in] | data | Pointer to private data. |
[in] | callback | Callback function address which is used to free private data. Pass NULL if need no additional process to free private data. |
Wait for termination of multiple threads.
[in] | pThreads | Pointer to array of thread handles. |
[in] | nCount | Number of threads in array. |
FX_INT32 FX_Thread_WaitForSingleThread | ( | FX_HTHREAD | hThread | ) |
Wait for termination of a single thread.
[in] | hThread | Thread handle specifies a thread to wait. |
void FX_Thread_Yield | ( | ) |
Yield the processor to another thread.
FX_DWORD FX_Time_GetClock | ( | ) |
Get the clock ticks elapsed by calling process.
void FX_Time_GetLocalTime | ( | FX_SYSTEMTIME * | pSystemTime | ) |
Retrieve the current local date and time.
[in,out] | pSystemTime | Pointer to a FX_SYSTEMTIME to receive the current local data and time. |
void FX_Time_GetSystemTime | ( | FX_SYSTEMTIME * | pSystemTime | ) |
Retrieve the current system date and time.
[in,out] | pSystemTime | Pointer to a FX_SYSTEMTIME to receive the current system data and time. |
Delay the current running for specified milliseconds.
[in] | dwMilliseconds | Time in milliseconds to delay. |
CFX_WideString FX_UrlDecode | ( | const CFX_ByteString & | bsUrl | ) |
A simple URL decode.
[in] | bsUrl | A URL string to be decoded. |
CFX_ByteString FX_UrlEncode | ( | const CFX_WideString & | wsUrl | ) |
A simple URL encode.
[in] | wsUrl | A URL string to be encoded. |
|
inline |
Encode a wide string into a UTF-8 string.
[in] | wsStr | A wide string. |
CFX_ByteString FX_UTF8Encode | ( | FX_LPCWSTR | pwsStr, |
FX_STRSIZE | len | ||
) |
Encode a wide string into a UTF-8 string.
[in] | pwsStr | Pointer to a wide string buffer. |
[in] | len | Length of wide string, in wide characters (FX_WCHAR). |
|
inline |
Encode a wide string into a UTF-8 string.
[in] | wsStr | A constant wide string. |
void FXCRT_GetCurrentSystemTime | ( | FXCRT_DATETIMEZONE & | dt | ) |
Get current system date,time and timezone information.
[in,out] | dt | Structure to receive the current system date,time and timezone information. |
void* FXMEM_Alloc | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
size_t | size, | ||
int | flags | ||
) |
Foxit basic memory allocation function.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | size | The size in bytes to allocate. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_AllocDebug | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
size_t | size, | ||
int | flags, | ||
FX_LPCSTR | file, | ||
int | line | ||
) |
Foxit basic memory allocation function in debug-mode.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | size | The size in bytes to allocate. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void FXMEM_CollectAll | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
Release all memory blocks allocated by a Foxit manager. This function is only supported on embedded systems.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
FXMEM_FoxitMgr* FXMEM_CreateFixedMgr | ( | void * | pMemory, |
size_t | size, | ||
FXMEM_SystemMgr2 * | pExtender | ||
) |
Create a Foxit manager from a pre-allocated, fixed memory buffer.
This form of Foxit manager is typically used on embedded systems where memory is limited and can be dedicated to single task. The application is responsible to allocate and free the fixed memory buffer. Buffer size can't be lower than 512KB, there is no upper limit. Now the fixed memory manager supports extensible pool. If parameter pExtender is not NULL, then when current memory pool runs out, it will ask for more from the system.
[in] | pMemory | A pointer to a memory block. |
[in] | size | The size in bytes of the memory block pointed by parameter pMemory. |
[in] | pExtender | A pointer to a FXMEM_SystemMgr2 object. |
FXMEM_FoxitMgr* FXMEM_CreateFoxitMgr | ( | FXMEM_SystemMgr * | pSystemMgr | ) |
Create a Foxit manager. A system manager must be provided for actual allocation.
On desktop platforms, you don't have to create a Foxit manager to use memory allocation, because FPDFAPI comes with a default Foxit manager (and underlying default system manager). But if your application uses non-default system manager, you will have to create a new Foxit manager that makes use of the custom system manager.
[in] | pSystemMgr | A pointer to a FXMEM_SystemMgr object. |
FXMEM_FoxitMgr* FXMEM_CreateMemoryMgr | ( | size_t | size, |
FX_BOOL | extensible | ||
) |
Create a fixed memory manager as default implementation.
[in] | size | Initial size of memory pool, in bytes. It should be not less than 8MB(1024 * 1024 * 8). |
[in] | extensible | If it's true, memory pool will extend if need more space. And false means memory cannot be extended. |
FXMEM_FoxitMgr* FXMEM_CreatePyMgr | ( | ) |
Create a Python manager. A fast, special-purpose memory allocator for small blocks, to be used on top of a general-purpose malloc – heavily based on previous art.
On desktop platforms, you don't have to create a Foxit manager to use memory allocation, because FPDFAPI comes with a default Foxit manager (and underlying default system manager). But if your application uses non-default system manager, you can create a new Python manager that makes use of the custom system manager.
void* FXMEM_DefaultAlloc | ( | size_t | byte_size, |
int | flags | ||
) |
Default allocation function using default Foxit memory manager for current module.
[in] | byte_size | The size in bytes to allocate. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_DefaultAlloc2 | ( | size_t | units, |
size_t | unit_size, | ||
int | flags | ||
) |
Default allocation function using default Foxit memory manager for current module.
[in] | units | Number of units to allocate. |
[in] | unit_size | The byte size of each unit. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_DefaultAllocDebug | ( | size_t | size, |
int | flags, | ||
FX_LPCSTR | file, | ||
int | line | ||
) |
Default debug-mode allocation function using default Foxit memory manager for current module.
[in] | size | The size in bytes to allocate. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void* FXMEM_DefaultAllocDebug2 | ( | size_t | units, |
size_t | unit_size, | ||
int | flags, | ||
FX_LPCSTR | file, | ||
int | line | ||
) |
Default debug-mode allocation function using default Foxit memory manager for current module.
[in] | units | Number of units to allocate. |
[in] | unit_size | The byte size of each unit. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void FXMEM_DefaultFree | ( | void * | pointer, |
int | flags | ||
) |
Default free function using default Foxit memory manager for current module.
[in] | pointer | Address of a memory block. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_DefaultRealloc | ( | void * | pointer, |
size_t | new_size, | ||
int | flags | ||
) |
Default reallocation function using default Foxit memory manager for current module.
[in] | pointer | Address of the memory block to be reallocated. |
[in] | new_size | The new size in bytes to reallocate. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_DefaultRealloc2 | ( | void * | pointer, |
size_t | units, | ||
size_t | unit_size, | ||
int | flags | ||
) |
Default reallocation function using default Foxit memory manager for current module.
[in] | pointer | Address of the memory block to be reallocated. |
[in] | units | Number of units to allocate. |
[in] | unit_size | The byte size of each unit. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_DefaultReallocDebug | ( | void * | pointer, |
size_t | new_size, | ||
int | flags, | ||
FX_LPCSTR | file, | ||
int | line | ||
) |
Default debug-mode reallocation function using default Foxit memory manager for current module.
[in] | pointer | Address of the memory block to be reallocated. |
[in] | new_size | The new size in bytes to reallocate. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void* FXMEM_DefaultReallocDebug2 | ( | void * | pointer, |
size_t | units, | ||
size_t | unit_size, | ||
int | flags, | ||
FX_LPCSTR | file, | ||
int | line | ||
) |
Default debug-mode reallocation function using default Foxit memory manager for current module.
[in] | pointer | Address of the memory block to be reallocated. |
[in] | units | Number of units to allocate. |
[in] | unit_size | The byte size of each unit. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void FXMEM_DestroyFoxitMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
Destroy a Foxit manager instance. If the platform supports auto-collection, then all allocated memory blocks will be released.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
void FXMEM_Free | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
void * | pointer, | ||
int | flags | ||
) |
Foxit basic memory free function.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | pointer | A pointer to a memory block. |
[in] | flags | Memory allocation attributes. |
size_t FXMEM_GetBlockSizeInFixedMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
void * | ptr | ||
) |
Get the size of a memory block to which ptr points.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object, it should be created as fixed memory manager. |
[in] | ptr | A pointer to a memory block. |
IFX_Allocator* FXMEM_GetDefAllocator | ( | ) |
Get default allocator used by the library.
FXMEM_FoxitMgr* FXMEM_GetDefaultMgr | ( | ) |
Get default memory manager for current module.
void FXMEM_OutputDebugTag | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
FX_LPCSTR | tag | ||
) |
Output a memory debug tag.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | tag | Tag string. |
void FXMEM_PurgeMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
Release all excessive memory without touching any used memory. This is useful for extensible fixed memory manager (FXMEM_SystemMgr2), because we never free those additional memory pool until the memory manager destroyed.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
void* FXMEM_Realloc | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
void * | pointer, | ||
size_t | new_size, | ||
int | flags | ||
) |
Foxit basic memory reallocation function.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | pointer | A pointer to a memory block. |
[in] | new_size | The size in bytes to reallocate. |
[in] | flags | Memory allocation attributes. |
void* FXMEM_ReallocDebug | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
void * | pointer, | ||
size_t | new_size, | ||
int | flags, | ||
FX_LPCSTR | file, | ||
int | line | ||
) |
Foxit basic memory reallocation function in debug-mode.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | pointer | A pointer to a memory block. |
[in] | new_size | The size in bytes to reallocate. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void FXMEM_ReportOOM | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
Report Out-of-memory (OOM).
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
void FXMEM_ResetSystemMgr | ( | ) |
Reset Foxit system memory manager for current module.
void FXMEM_SetConfig | ( | const FX_MEMCONFIG * | memConfig | ) |
Set configuration of fixed memory.
This function is optional for desktop platforms, and should be called at first to change default configuration when start application before initialize fixed memory manager.
[in] | memConfig | A pointer to memory configuration. |
void FXMEM_SetDefaultMgr | ( | FXMEM_FoxitMgr * | pFoxitMgr | ) |
Set default Foxit manager for current compile module (EXE, DLL, etc.).
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
void FXMEM_SetOOMHandler | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
FPDF_OOM_Handler | pOOMReportFunc, | ||
void * | param | ||
) |
Setup A Out-Of-Memory handler for a Foxit memory manager.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | pOOMReportFunc | A pointer a Out-Of-Memory handler. |
[in] | param | A generic typeless pointer for user data to be called back. |
int FXMEM_SetPyConfig | ( | size_t | lowByteRange, |
size_t | highByteRange | ||
) |
Set configuration of Python memory.
This function is optional, when config is set, Python memory manager can only allocate between lowByteRange and highByteRange.
[in] | lowByteRange | The specify low byte range. |
[in] | highByteRange | The specify high byte range. |
void FXMEM_UseDebugger | ( | FXMEM_FoxitMgr * | pFoxitMgr, |
FXMEM_Debugger * | pDebugger | ||
) |
Use a memory debugger which capturing all memory activities. Use NULL for parameter pDebugger to stop debugging.
[in] | pFoxitMgr | A pointer to a FXMEM_FoxitMgr object to be debugged. |
[in] | pDebugger | A pointer to a FXMEM_Debugger object. |
Convert an ANSI string to an integer.
[in] | str | An ANSI string. |
FX_INT64 FXSYS_atoi64 | ( | FX_LPCSTR | str | ) |
Convert an ANSI string to an integer.
[in] | str | An ANSI string. |
Convert an integer to an ANSI string.
[in] | value | An integer. |
[in] | str | |
[in] | radix | Base of value; which must be in the range 2¨C36. |
FX_LPCWSTR FXSYS_i64tow | ( | FX_INT64 | value, |
FX_LPWSTR | str, | ||
int | radix | ||
) |
Convert an integer to an wide string.
[in] | value | An integer. |
[in] | str | |
[in] | radix | Base of value; which must be in the range 2¨C36. |
FX_INT32 FXSYS_memcmp32 | ( | const void * | buf1, |
const void * | buf2, | ||
size_t | size | ||
) |
Compare data in two buffers.
Input buffers should start from 4-bytes-aligned position, but size can be any value.
[in] | buf1 | First buffer pointer. |
[in] | buf2 | Second buffer pointer. |
[in] | size | Length of data to compare, in bytes. |
void* FXSYS_memcpy32 | ( | void * | dst, |
const void * | src, | ||
size_t | size | ||
) |
Copy buffer data from source to destination.
Parameter dst and src should start from 4-bytes-aligned position, but size can be any value.
[in,out] | dst | Destination buffer pointer. |
[in] | src | Source buffer pointer to copy from. |
[in] | size | Length of data to copy, in bytes. |
void* FXSYS_memmove32 | ( | void * | dst, |
const void * | src, | ||
size_t | size | ||
) |
Move source buffer data into destination.
[in,out] | dst | Destination buffer pointer. |
[in] | src | Source buffer pointer. |
[in] | size | Length of source buffer data to move, in bytes. |
void* FXSYS_memset32 | ( | void * | dst, |
FX_INT32 | v, | ||
size_t | size | ||
) |
Set buffer data to specified value.
Parameter dst should start from 4-bytes-aligned position, but size can be any value.
[in,out] | dst | Destination buffer pointer. |
[in] | v | Value to set. |
[in] | size | Length of data to set, in bytes. |
void* FXSYS_memset8 | ( | void * | dst, |
FX_BYTE | v, | ||
size_t | size | ||
) |
Set buffer data to specified value.
Parameter dst should start from 4-bytes-aligned position, but size can be any value.
[in,out] | dst | Destination buffer pointer. |
[in] | v | Value to set. |
[in] | size | Length of data to set, in bytes. |
int FXSYS_round | ( | FX_FLOAT | f | ) |
Get nearest integer.
[in] | f | A float value. |
FX_INT32 FXSYS_wtoi | ( | FX_LPCWSTR | str | ) |
Convert a wide string to an integer.
[in] | str | A wide string. |
FX_INT64 FXSYS_wtoi64 | ( | FX_LPCWSTR | str | ) |
Convert a wide string to an integer.
[in] | str | A wide string. |
int FXWCHAR_GetDirection | ( | FX_WCHAR | wchar | ) |
Get text direction.
[in] | wchar |
Convert to lower-case letter.
[in] | wchar | A unicode character. |
Convert to upper-case letter.
[in] | wchar | A unicode character. |
Check if the unicode is space.
[in] | wchar | A unicode character. |
Check if the unicode can break a word.
[in] | wchar | A unicode character. |
|
inline |
This method retrieves a single byte specified by an index number.
[in] | index | Specifies the zero-based index in the byte string. |
|
inline |
Retrieves a single byte specified by an index number.
[in] | index | Specifies the zero-based index in the byte string. |
|
inline |
Get a single byte specified by an index number.
[in] | nIndex | Specifies the zero-based index in the byte string. |
|
inline |
Retrieves a single wide character specified by an index number.
[in] | nIndex | Specifies the zero-based index in the wide string. |
|
pure virtual |
Get internal buffer of block data.
|
pure virtual |
Get the offset of data in internal buffer.
This offset starts from the beginning of stream.
|
pure virtual |
Get the size of data in internal buffer.
|
pure virtual |
Get the current memory buffer.
FX_LPSTR CFX_ByteString::GetBuffer | ( | FX_STRSIZE | len | ) |
Get a buffer with specific number of bytes allocated.
The content of this string won't be affected by function CFX_ByteString::GetBuffer. Caller can modified the returned buffer, and should call function CFX_ByteString::ReleaseBuffer after modification done.
[in] | len | the Length expected to get. |
FX_LPWSTR CFX_WideString::GetBuffer | ( | FX_STRSIZE | len | ) |
Get a buffer with specific number of characters allocated.
[in] | len | the Length expected to get. |
|
inline |
Get a constant character string pointer to the byte string.
FX_FLOAT CFX_WideString::GetFloat | ( | ) | const |
Convert to other data type.
FX_DWORD CFX_ByteStringC::GetID | ( | FX_STRSIZE | start_pos = 0 | ) | const |
Get a DWORD identifier of the string, from a particular position.
This DWORD can be used for quick comparison. Using MSB-first scheme. If the string does not have enough bytes, then zero will be used missing bytes.
[in] | start_pos | Start position in the constant byte string. |
FX_DWORD CFX_ByteString::GetID | ( | FX_STRSIZE | start_pos = 0 | ) | const |
Get a DWORD identifier of the string. See function CFX_ByteStringC::GetID for details.
[in] | start_pos | Start position in the constant byte string. |
int CFX_WideString::GetInteger | ( | ) | const |
Convert to other data type.
|
inline |
Get the length of the byte string.
|
inline |
Get number of bytes in the byte string (not counting any possible terminator).
|
inline |
Get the length of the byte string.
|
inline |
Get number of characters, not bytes. Trailing zero not counted.
|
pure virtual |
Get current path string.
[out] | wsPath | Receive current file path. |
|
inlinevirtual |
Get the current reading position in stream.
Implements IFX_StreamRead.
Reimplemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
virtual |
Get the current reading position in stream.
Implements IFX_FileStream.
|
pure virtual |
Get the current reading position in stream.
Implemented in IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, CFX_CachedFileRead, and IFX_FileRead.
|
pure virtual |
Get the current reading position in stream.
Reimplemented from IFX_FileRead.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Get the current reading position in stream.
Implements IFX_FileStream.
|
pure virtual |
Get the current reading position in stream.
Implements IFX_StreamRead.
|
inline |
Get a constant byte string pointer to the byte string.
|
inline |
Get a C-style string pointer to the string buffer.
|
inline |
Get a constant wide string pointer to the wide string.
|
virtual |
Get total size of the file.
Implements IFX_FileStream.
|
inline |
Gets the length of the string.
|
pure virtual |
Get total size of the file.
Implemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
pure virtual |
Get total size of the file.
Implemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
pure virtual |
Get the current stream size, in bytes.
Implements IFX_FileWrite.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Get the current stream size, in bytes.
Implements IFX_FileStream.
|
inline |
Get a buffered byte string.
|
inline |
Get a non-buffered byte string.
FX_BOOL CFX_CachedFileRead::Init | ( | FX_INT32 | nChunkSize, |
FX_INT32 | nChunkCount, | ||
FX_LPVOID | pBuffer, | ||
IFX_Allocator * | pAllocator = 0 |
||
) |
Initialize the chunk size and chunk count.
[in] | nChunkSize | The size of each chunk. |
[in] | nChunkCount | The total count of chunks. |
[in] | pBuffer | External buffer. NULL means cache is disabled. |
[in] | pAllocator | Allocator used in this class. NULL means to use default allocator. Default value: NULL. |
FX_STRSIZE CFX_ByteString::Insert | ( | FX_STRSIZE | index, |
FX_CHAR | ch | ||
) |
Insert a character before specific position.
[in] | index | Specifies the zero-based index in the byte string. |
[in] | ch | A single character. |
FX_STRSIZE CFX_WideString::Insert | ( | FX_STRSIZE | index, |
FX_WCHAR | ch | ||
) |
Insert a wide character before specific position.
[in] | index | Specifies the zero-based index in the wide string. |
[in] | ch | A single wide character. |
|
pure virtual |
Determine whether the current mode is consecutive or not.
|
inline |
Check whether current string object is empty.
|
inline |
Check whether current string object is empty.
|
inline |
Determines whether current string object is empty.
|
inline |
Check whether current string object is empty.
|
inlinevirtual |
Determine whether reach the end of stream.
Implements IFX_StreamRead.
Reimplemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
virtual |
Determine whether reach the end of stream.
Implements IFX_FileStream.
|
pure virtual |
Determine whether reach the end of stream.
Implemented in IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, CFX_CachedFileRead, and IFX_FileRead.
|
pure virtual |
Determine whether reach the end of stream.
Reimplemented from IFX_FileRead.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Determine whether reach the end of stream.
Implements IFX_FileStream.
|
pure virtual |
Determine whether reach the end of stream.
Implements IFX_StreamRead.
CFX_ByteString CFX_ByteString::Left | ( | FX_STRSIZE | count | ) | const |
Extracts the first (leftmost) count bytes from this CFX_ByteString object as a sub-string.
[in] | count | The count of bytes expected to extract for the sub-string. |
|
inline |
Extracts the first (leftmost) count wide characters from this CFX_WideStringC object as a sub-string.
[in] | count | The count of wide characters expected to extract for the sub-string. |
CFX_WideString CFX_WideString::Left | ( | FX_STRSIZE | count | ) | const |
Extracts the first (leftmost) count wide characters from this CFX_WideString object as a sub-string.
[in] | count | The count of wide characters expected to extract for the sub-string. |
void CFX_ByteString::Load | ( | FX_LPCBYTE | str, |
FX_STRSIZE | len | ||
) |
Load from a byte string.
[in] | str | Pointer to a constant byte string. |
[in] | len | The length of the byte string. |
|
static |
Load the whole content of a file.
[in] | file_path | The file path. |
FX_LPSTR CFX_ByteString::LockBuffer | ( | ) |
Lock and get the current string buffer, so the caller can modify the returned buffer.
Caller can modified the returned buffer, and should call function CFX_ByteString::ReleaseBuffer after modification done.
FX_LPWSTR CFX_WideString::LockBuffer | ( | ) |
Lock and get the current string buffer, so the caller can modify the returned buffer. Caller can modified the returned buffer, and should call CFX_WideString::ReleaseBuffer after modification done.
void CFX_ByteString::MakeLower | ( | ) |
Change case of English letters to lower.
void CFX_WideString::MakeLower | ( | ) |
Change case of English letters to lower.
void CFX_ByteString::MakeUpper | ( | ) |
Change case of English letters to upper.
void CFX_WideString::MakeUpper | ( | ) |
Change case of English letters to upper.
CFX_ByteString CFX_ByteString::Mid | ( | FX_STRSIZE | first | ) | const |
Extracts a substring from this CFX_ByteString object, starting at position nFirst (zero-based) to last.
[in] | first | Specifies the zero-based index of the starting position in this CFX_ByteString object. |
CFX_WideString CFX_WideString::Mid | ( | FX_STRSIZE | first | ) | const |
Extracts a substring from this CFX_WideString object, starting at position nFirst (zero-based) to last.
[in] | first | Specifies the zero-based index of the starting position in this CFX_WideString object. |
CFX_ByteString CFX_ByteString::Mid | ( | FX_STRSIZE | first, |
FX_STRSIZE | count | ||
) | const |
Extracts a substring of count bytes from this CFX_ByteString object, starting at position nFirst (zero-based) to last.
[in] | first | Specifies the zero-based index of the starting position in this CFX_ByteString object. |
[in] | count | The count of bytes expected to extract for the sub-string. |
CFX_WideString CFX_WideString::Mid | ( | FX_STRSIZE | first, |
FX_STRSIZE | count | ||
) | const |
Extracts a substring of count wide character from this CFX_WideString object, starting at position nFirst (zero-based) to last.
[in] | first | Specifies the zero-based index of the starting position in this CFX_WideString object. |
[in] | count | The count of wide characters expected to extract for the sub-string. |
|
inline |
This method extracts a substring of length count bytes from this CFX_ByteStringC object, starting at position index (zero-based).
[in] | index | Specifies the zero-based index in the CFX_ByteStringC object. |
[in] | count | Specifies the number of bytes to extract from this CFX_ByteStringC object. |
|
inline |
Extracts a substring of length count bytes from this CFX_WideStringC object, starting at position index (zero-based).
[in] | index | Specifies the zero-based index in the CFX_WideStringC object. |
[in] | count | Specifies the number of bytes to extract from this CFX_WideStringC object. |
|
inline |
This casting operator accesses the byte string referred in a CFX_ByteStringC object.
|
inline |
Comparison(!=) operator overload. case-sensitive.
[in] | str | The null-terminated byte string to be compared. |
|
inline |
Comparison(!=) operator overload. case-sensitive.
[in] | str | constant ref to a CFX_ByteStringC object. |
bool operator!= | ( | const CFX_WideString & | s1, |
const CFX_WideString & | s2 | ||
) |
Comparison(!=) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide string. |
bool operator!= | ( | const CFX_WideString & | s1, |
const CFX_WideStringC & | s2 | ||
) |
Comparison(!=) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide string. |
bool operator!= | ( | const CFX_WideString & | s1, |
FX_LPCWSTR | s2 | ||
) |
Comparison(!=) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide character string. |
bool operator!= | ( | const CFX_WideStringC & | s1, |
const CFX_WideString & | s2 | ||
) |
Comparison(!=) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide string. |
|
inline |
Comparison(!=) operator overload. Case-sensitive.
[in] | str | constant ref to a CFX_WideStringC object. |
|
inline |
Comparison(!=) operator overload. case-sensitive.
[in] | str | The null-terminated constant byte string to be compared. |
|
inline |
Comparison(!=) operator overload. case-sensitive.
[in] | str | The null-terminated character string to be compared. |
bool operator!= | ( | FX_LPCWSTR | s1, |
const CFX_WideString & | s2 | ||
) |
Comparison(!=) operator overload. Case-sensitive.
[in] | s1 | The first wide character string. |
[in] | s2 | The second wide string. |
|
inline |
Concatenate a buffered byte string and a buffered byte string.
[in] | str1 | A buffered byte string. |
[in] | str2 | A buffered byte string. |
|
inline |
Concatenate a buffered byte string and a non-buffered byte string.
[in] | str1 | A buffered byte string. |
[in] | str2 | A non-buffered byte string. |
|
inline |
Concatenate a buffered byte string and a single character or byte.
[in] | str1 | A buffered byte string. |
[in] | ch | A single character or byte. |
|
inline |
Concatenate a buffered byte string and a zero-terminated C-style string.
[in] | str1 | A buffered byte string. |
[in] | str2 | A zero-terminated C-style string. |
|
inline |
Concatenate a buffered byte string and a buffered byte string.
[in] | str1 | A buffered wide string. |
[in] | str2 | A buffered wide string. |
|
inline |
Concatenate a buffered byte string and a non-buffered byte string.
[in] | str1 | A buffered wide string. |
[in] | str2 | A non-buffered wide string. |
|
inline |
Concatenate a buffered wide string and a zero-terminated C-style string.
[in] | str1 | A buffered wide string. |
[in] | str2 | A zero-terminated C-style string. |
|
inline |
Concatenate a buffered byte string and a single character or byte.
[in] | str1 | A buffered wide string. |
[in] | ch | A single character. |
|
inline |
Concatenate a non-buffered byte string and a buffered byte string.
[in] | str1 | A non-buffered wide string. |
[in] | str2 | A buffered wide string. |
|
inline |
Concatenate a non-buffered wide string and a non-buffered wide string.
[in] | str1 | A non-buffered wide string. |
[in] | str2 | A non-buffered wide string. |
|
inline |
Concatenate a non-buffered byte string and a zero-terminated C-style string.
[in] | str1 | A non-buffered wide string. |
[in] | str2 | A zero-terminated C-style string. |
|
inline |
Concatenate a non-buffered byte string and a single character or byte.
[in] | str1 | A non-buffered wide string. |
[in] | ch | A single character. |
|
inline |
Concatenate a non-buffered byte string and a buffered byte string.
[in] | str1 | A non-buffered byte string. |
[in] | str2 | A buffered byte string. |
|
inline |
Concatenate a non-buffered byte string and a non-buffered byte string.
[in] | str1 | A non-buffered byte string. |
[in] | str2 | A non-buffered byte string. |
|
inline |
Concatenate a non-buffered byte string and a single character or byte.
[in] | str1 | A non-buffered byte string. |
[in] | ch | A single character or byte. |
|
inline |
Concatenate a non-buffered byte string and a zero-terminated C-style string.
[in] | str1 | A non-buffered byte string. |
[in] | str2 | A zero-terminated C-style string. |
|
inline |
Concatenate a single character or byte and a buffered byte string.
[in] | ch | A single character or byte. |
[in] | str2 | A buffered byte string. |
|
inline |
Concatenate a single character or byte and a non-buffered byte string.
[in] | ch | A single character or byte. |
[in] | str2 | A non-buffered byte string. |
|
inline |
Concatenate a zero-terminated C-style string and a buffered byte string.
[in] | str1 | A zero-terminated C-style string. |
[in] | str2 | A buffered byte string. |
|
inline |
Concatenate a zero-terminated C-style string and a non-buffered byte string.
[in] | str1 | A zero-terminated C-style string. |
[in] | str2 | A non-buffered byte string. |
|
inline |
Concatenate a zero-terminated C-style string and a buffered byte string.
[in] | str1 | A zero-terminated C-style string. |
[in] | str2 | A buffered wide string. |
|
inline |
Concatenate a zero-terminated C-style string and a non-buffered byte string.
[in] | str1 | A zero-terminated C-style string. |
[in] | str2 | A non-buffered wide string. |
|
inline |
Concatenate a single character or byte and a buffered byte string.
[in] | ch | A single character. |
[in] | str2 | A buffered wide string. |
|
inline |
Concatenate a single character or byte and a non-buffered byte string.
[in] | ch | A single character. |
[in] | str2 | A non-buffered wide string. |
const CFX_ByteString& CFX_ByteString::operator+= | ( | const CFX_ByteString & | str | ) |
Concatenation(+=) operator overload. Concatenate a CFX_ByteString object.
[in] | str | A ref to a constant CFX_ByteString object. |
const CFX_WideString& CFX_WideString::operator+= | ( | const CFX_WideString & | str | ) |
Concatenation(+=) operator overload. Concatenate a wide string.
[in] | str | The input wide string. |
const CFX_WideString& CFX_WideString::operator+= | ( | const CFX_WideStringC & | str | ) |
Concatenation(+=) operator overload. Concatenate a constant wide string.
[in] | str | The input wide string. |
const CFX_ByteString& CFX_ByteString::operator+= | ( | FX_BSTR | bstrc | ) |
Concatenation(+=) operator overload. Concatenate a constant CFX_ByteStringC object.
[in] | bstrc | A ref to a constant CFX_ByteStringC object. |
const CFX_ByteString& CFX_ByteString::operator+= | ( | FX_CHAR | ch | ) |
Concatenation(+=) operator overload. Concatenate a single character.
[in] | ch | A single character. |
const CFX_ByteString& CFX_ByteString::operator+= | ( | FX_LPCSTR | str | ) |
Concatenation(+=) operator overload. Concatenate a null-terminated character string.
[in] | str | Pointer to a constant null-terminated character string. |
const CFX_WideString& CFX_WideString::operator+= | ( | FX_LPCWSTR | str | ) |
Concatenation(+=) operator overload. Concatenate a wide character string.
[in] | str | The wide character string. |
const CFX_WideString& CFX_WideString::operator+= | ( | FX_WCHAR | ch | ) |
Concatenation(+=) operator overload. Concatenate a single wide character.
[in] | ch | The single wide character. |
bool CFX_ByteString::operator< | ( | const CFX_ByteString & | rhs | ) | const |
Comparison(<) operator overload. case-sensitive.
[in] | rhs | The right hand side string. |
bool operator< | ( | const CFX_WideString & | lhs, |
const CFX_WideString & | rhs | ||
) |
Comparison(<) operator overload. Case-sensitive.
[in] | lhs | The left hand side wide string. |
[in] | rhs | The right hand side wide string. |
const CFX_ByteString& CFX_ByteString::operator= | ( | const CFX_BinaryBuf & | buf | ) |
Assignment(=) operator overload. From a CFX_BinaryBuf object.
[in] | buf | A ref to a constant CFX_BinaryBuf object. |
|
inline |
Assignment(=) operator overload. From a CFX_ByteString object.
[in] | src | constant ref to a CFX_ByteString object. |
const CFX_ByteString& CFX_ByteString::operator= | ( | const CFX_ByteString & | stringSrc | ) |
Assignment(=) operator overload. From a CFX_ByteString object.
[in] | stringSrc | A ref to a constant CFX_ByteString object. |
|
inline |
Assignment(=) operator overload. From a CFX_ByteStringC object.
[in] | src | constant ref to a CFX_ByteStringC object. |
|
inline |
Assignment(=) operator overload. From a CFX_ByteString object.
[in] | src | constant ref to a CFX_ByteString object. |
const CFX_WideString& CFX_WideString::operator= | ( | const CFX_WideString & | stringSrc | ) |
Assignment(=) operator overload. From a wide string.
[in] | stringSrc | The Input wide string. |
|
inline |
Assignment(=) operator overload. From a CFX_WideStringC object.
[in] | src | constant ref to a CFX_ByteStringC object. |
const CFX_WideString& CFX_WideString::operator= | ( | const CFX_WideStringC & | stringSrc | ) |
Assignment(=) operator overload. From a const wide string.
[in] | stringSrc | The Input wide string. |
const CFX_ByteString& CFX_ByteString::operator= | ( | FX_BSTR | bstrc | ) |
Assignment(=) operator overload. From a constant byte string.
[in] | bstrc | A ref to a constant byte string. |
|
inline |
Assignment(=) operator overload. From a character string.
[in] | src | Pointer to a constant character string. |
const CFX_ByteString& CFX_ByteString::operator= | ( | FX_LPCSTR | str | ) |
Assignment(=) operator overload. From a character string.
[in] | str | A pointer to a constant character string. |
|
inline |
Assignment(=) operator overload. From a character string.
[in] | src | Pointer to a constant character string. |
const CFX_WideString& CFX_WideString::operator= | ( | FX_LPCWSTR | str | ) |
Assignment(=) operator overload. From a wide character string.
[in] | str | The wide character string. |
bool CFX_ByteString::operator== | ( | const CFX_ByteString & | str | ) | const |
Comparison(==) operator overload. case-sensitive.
[in] | str | The null-terminated byte string to be compared. |
|
inline |
Comparison(==) operator overload. case-sensitive.
[in] | str | constant ref to a CFX_ByteStringC object. |
bool operator== | ( | const CFX_WideString & | s1, |
const CFX_WideString & | s2 | ||
) |
Comparison(==) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide string. |
bool operator== | ( | const CFX_WideString & | s1, |
const CFX_WideStringC & | s2 | ||
) |
Comparison(==) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide string. |
bool operator== | ( | const CFX_WideString & | s1, |
FX_LPCWSTR | s2 | ||
) |
Comparison(==) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide character string. |
bool operator== | ( | const CFX_WideStringC & | s1, |
const CFX_WideString & | s2 | ||
) |
Comparison(==) operator overload. Case-sensitive.
[in] | s1 | The first wide string. |
[in] | s2 | The second wide string. |
|
inline |
Comparison(==) operator overload. Case-sensitive.
[in] | str | constant ref to a CFX_ByteStringC object. |
|
inline |
Comparison(==) operator overload. case-sensitive.
[in] | str | The null-terminated constant byte string to be compared. |
|
inline |
Comparison(==) operator overload. case-sensitive.
[in] | str | The null-terminated character string to be compared. |
bool operator== | ( | FX_LPCWSTR | s1, |
const CFX_WideString & | s2 | ||
) |
Comparison(==) operator overload. Case-sensitive.
[in] | s1 | The first wide character string. |
[in] | s2 | The second wide string. |
|
inline |
Subscript([]) operator overload. It retrieves a single byte specified by the zero-based index in nIndex.
[in] | nIndex | Specifies the zero-based index in the byte string. |
|
inline |
Subscript([]) operator overload. It retrieves a wide character specified by the zero-based index in nIndex.
[in] | nIndex | Specifies the zero-based index in the wide string. |
Attach a file read.
[in] | offset | The file to be attached. |
[in] | nCacheCount | Take over the file or not. |
|
virtual |
Read a data block from the file.
[in,out] | buffer | Pointer to a buffer receiving read data |
[in] | offset | Byte offset from beginning of the file |
[in] | size | Number of bytes for the block. |
Implements IFX_FileStream.
|
pure virtual |
Read a data block from the file.
[in,out] | buffer | Pointer to a buffer receiving read data |
[in] | offset | Byte offset from beginning of the file |
[in] | size | Number of bytes for the block. |
Implemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
pure virtual |
Read a data block from stream.
[in,out] | buffer | Pointer to a buffer receiving data. |
[in] | offset | Byte offset from beginning of the file, the position to read data. |
[in] | size | Number of bytes to be read from stream. |
Implements IFX_FileRead.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Read a data block from stream.
[in,out] | buffer | Pointer to a buffer receiving data. |
[in] | offset | Byte offset from beginning of the file, the position to read data. |
[in] | size | Number of bytes to be read from stream. |
Implements IFX_FileStream.
|
inlinevirtual |
Read data block from stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Implements IFX_StreamRead.
Reimplemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
virtual |
Read data block from stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Implements IFX_FileStream.
|
pure virtual |
Read data block from sequential stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Implemented in IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, CFX_CachedFileRead, and IFX_FileRead.
|
pure virtual |
Read data block from stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Reimplemented from IFX_FileRead.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Read data block from stream.
[in,out] | buffer | Buffer to store data. |
[in] | size | Total size of buffer, in bytes. |
Implements IFX_FileStream.
|
pure virtual |
Read data block from sequential stream.
[in,out] | buffer | buffer to store data. |
[in] | size | total size of buffer, in bytes. |
Implements IFX_StreamRead.
Read the next block in sequential stream.
[in] | bRestart | Indicates to read data from the beginning of stream. Default value: false. |
|
protectedvirtual |
|
pure virtual |
Called when to release everything.
Implemented in IFX_BufferRead, IFX_ChunkFileStream, IFX_FileStream, IFX_FileRead, and CFX_CachedFileRead.
|
pure virtual |
Called when to release everything.
Implements IFX_StreamRead.
Implemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
pure virtual |
Destroy the current instance.
Implements IFX_FileWrite.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
|
pure virtual |
Destroy the current instance.
|
pure virtual |
void CFX_ByteString::ReleaseBuffer | ( | FX_STRSIZE | len = -1 | ) |
Release the buffer fetched by function CFX_ByteString::GetBuffer or CFX_ByteString::LockBuffer, and set the length of modified string.
If parameter len parameter is -1, then it's assumed to be a zero-terminated string.
[in] | len | Length expected to release to. Default value: -1. |
void CFX_WideString::ReleaseBuffer | ( | FX_STRSIZE | len = -1 | ) |
Release the buffer fetched by function CFX_WideString::GetBuffer or CFX_WideString::LockBuffer, and set the length of modified string.
[in] | len | Length expected to release to. -1 means that current string is assumed to be a zero-terminated string. |
FX_STRSIZE CFX_ByteString::Remove | ( | FX_CHAR | ch | ) |
Remove all occurrence of a particular character.
[in] | ch | Specified the character to be removed. |
FX_STRSIZE CFX_WideString::Remove | ( | FX_WCHAR | ch | ) |
Remove all occurrence of a particular character.
[in] | ch | Specified the character to be removed. |
FX_STRSIZE CFX_ByteString::Replace | ( | FX_BSTR | lpszOld, |
FX_BSTR | lpszNew | ||
) |
Replace all patterns in the string with a new sub-string.
[in] | lpszOld | Specified the string to be matched and replaced in the byte string. |
[in] | lpszNew | Specified the string to replace. |
FX_STRSIZE CFX_WideString::Replace | ( | FX_LPCWSTR | lpszOld, |
FX_LPCWSTR | lpszNew | ||
) |
Replace all patterns in the string with a new sub-string.
[in] | lpszOld | Specified the string to be matched and replaced in the wide string. |
[in] | lpszNew | Specified the string to replace. |
void CFX_ByteString::Reserve | ( | FX_STRSIZE | len | ) |
Reserve a buffer that can hold specific number of bytes.
The content of this string won't be changed. This can be used if application anticipates the string may grow many times, in this case, reserving a larger buffer will support string growth without buffer reallocation.
[in] | len | Length expected to reserve. |
void CFX_WideString::Reserve | ( | FX_STRSIZE | len | ) |
Reserve a buffer that can hold specific number of characters.
[in] | len | the Length expected to reserve. |
|
protectedvirtual |
|
pure virtual |
Create a shared instance.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
protectedpure virtual |
|
pure virtual |
Create a shared instance.
FX_STRSIZE CFX_ByteString::ReverseFind | ( | FX_CHAR | ch | ) | const |
Find a character from end of the string.
[in] | ch | A character to be found in curren string, from the end. |
CFX_ByteString CFX_ByteString::Right | ( | FX_STRSIZE | count | ) | const |
Extracts the last (rightmost) count bytes from this CFX_ByteString object as a sub-string.
[in] | count | The count of bytes expected to extract for the sub-string. |
|
inline |
Extracts the last (rightmost) count wide characters from this CFX_WideStringC object as a sub-string.
[in] | count | The count of wide characters expected to extract for the sub-string. |
CFX_WideString CFX_WideString::Right | ( | FX_STRSIZE | count | ) | const |
Extracts the last (rightmost) count wide characters from this CFX_WideString object as a sub-string.
[in] | count | The count of wide characters expected to extract for the sub-string. |
void CFX_ByteString::SetAt | ( | FX_STRSIZE | nIndex, |
FX_CHAR | ch | ||
) |
Overwrites a single byte specified by an index number.
[in] | nIndex | Specifies the zero-based index in the byte string. |
[in] | ch | A single character. |
void CFX_WideString::SetAt | ( | FX_STRSIZE | nIndex, |
FX_WCHAR | ch | ||
) |
Overwrites a single wide character specified by an index number.
[in] | nIndex | Specifies the zero-based index in the wide string. |
[in] | ch | A single wide character. |
|
inlinevirtual |
Set the current file accessing position.
[in] | pos | The new accessing position. |
Reimplemented in IFX_FileRead.
|
inlinevirtual |
Set the current file accessing position.
[in] | pos | The new accessing position. |
Reimplemented from IFX_StreamRead.
|
inlinevirtual |
Set accessing range.
[in] | offset | |
[in] | size |
void CFX_ByteString::TrimLeft | ( | ) |
Trim white spaces from the left side of the byte string.
void CFX_WideString::TrimLeft | ( | ) |
Trim white spaces from the left side of the wide string.
void CFX_ByteString::TrimLeft | ( | FX_BSTR | lpszTargets | ) |
Trim continuous occurrences of specified characters from left side of the byte string.
[in] | lpszTargets | The specified characters. |
void CFX_ByteString::TrimLeft | ( | FX_CHAR | chTarget | ) |
Trim continuous occurrences of specified characters from left side of the byte string.
[in] | chTarget | The specified character. |
void CFX_WideString::TrimLeft | ( | FX_LPCWSTR | lpszTargets | ) |
Trim continuous occurrences of specified characters from left side of the wide string.
[in] | lpszTargets | The specified characters. |
void CFX_WideString::TrimLeft | ( | FX_WCHAR | chTarget | ) |
Trim continuous occurrences of specified character from left side of the wide string.
[in] | chTarget | The specified character. |
void CFX_ByteString::TrimRight | ( | ) |
Trim white spaces from the right side of the byte string.
void CFX_WideString::TrimRight | ( | ) |
Trim white spaces from the right side of the wide string.
void CFX_ByteString::TrimRight | ( | FX_BSTR | lpszTargets | ) |
Trim continuous occurrences of specified characters from right side of the byte string.
[in] | lpszTargets | The specified characters. |
void CFX_ByteString::TrimRight | ( | FX_CHAR | chTarget | ) |
Trim continuous occurrences of specified character from right side of the byte string.
[in] | chTarget | The specified character. |
void CFX_WideString::TrimRight | ( | FX_LPCWSTR | lpszTargets | ) |
Trim continuous occurrences of specified characters from right side of the wide string.
[in] | lpszTargets | The specified characters. |
void CFX_WideString::TrimRight | ( | FX_WCHAR | chTarget | ) |
Trim continuous occurrences of specified character from right side of the wide string.
[in] | chTarget | The specified character. |
CFX_ByteString CFX_WideString::UTF16LE_Encode | ( | FX_BOOL | bTerminate = true | ) | const |
Do UTF16LE encoding.
[in] | bTerminate |
CFX_WideString CFX_ByteString::UTF8Decode | ( | ) | const |
Decode a UTF-8 unicode string (assume this byte string is UTF-8 encoded).
CFX_ByteString CFX_WideString::UTF8Encode | ( | ) | const |
Do UTF8 encoding.
|
pure virtual |
Write a block data into stream.
[in] | buffer | Pointer to the data block. |
[in] | offset | Byte offset from beginning of the file, the position to write data. |
[in] | size | The length in bytes of the buffer. |
Implements IFX_FileWrite.
Implemented in IFX_ChunkFileStream, and CFX_CachedFileRead.
|
pure virtual |
Write a block data into stream.
[in] | buffer | Pointer to the data block. |
[in] | offset | Byte offset from beginning of the file, the position to write data. |
[in] | size | The length in bytes of the buffer. |
Implements IFX_FileStream.
|
inlinevirtual |
Write a block data to the end of current stream.
[in] | buffer | Pointer to the data block. |
[in] | size | The length in bytes of the buffer. |
Reimplemented from IFX_FileWrite.
Reimplemented in IFX_ChunkFileStream.
|
inlinevirtual |
Write a block data to the end of current stream.
[in] | buffer | Pointer to the data block. |
[in] | size | The length in bytes of the buffer. |
Reimplemented from IFX_FileStream.
|
pure virtual |
Write a block data.
[in] | pData | The block data. |
[in] | offset | Byte offset from beginning of the file |
[in] | size | The length in bytes of the block data. |
Implemented in IFX_ChunkFileStream, IFX_FileStream, and CFX_CachedFileRead.
|
inlinevirtual |
Write a block data to the end.
[in] | pData | The block data. |
[in] | size | The length in bytes of the block data. |
Implements IFX_StreamWrite.
Reimplemented in IFX_ChunkFileStream, and IFX_FileStream.
|
pure virtual |
Write a block data.
[in] | pData | The block data. |
[in] | size | The length in bytes of the block data. |
Implemented in IFX_FileWrite, IFX_ChunkFileStream, and IFX_FileStream.
|
static |
Length of string.
[in] | str | A string. |
void*(* FXMEM_SystemMgr::Alloc) (struct _FXMEM_SystemMgr *pMgr, size_t size, int flags) |
A pointer type to an allocation function.
The function prototype is:
void* Alloc(FXMEM_SystemMgr* pMgr, size_t size, int flags);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | size | The size in bytes to allocate. |
[in] | flags | Memory allocation attributes. |
void*(* FXMEM_SystemMgr::AllocDebug) (struct _FXMEM_SystemMgr *pMgr, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function.
The function prototype is:
void* AllocDebug(FXMEM_SystemMgr* pMgr, size_t size, int flags, FX_LPCSTR file, int line);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | size | The size in bytes to allocate. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void(* FXMEM_SystemMgr::CollectAll) (struct _FXMEM_SystemMgr *pMgr) |
A pointer type to a memory-collection function.
The function prototype is:
void CollectAll(FXMEM_SystemMgr* pMgr);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
FX_HTHREAD(* FX_THREADHANDLER::CreateThread) (FX_LPVOID pUserData, FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc lpfThreadProc, FX_LPVOID param) |
Callback function to create a thread.
[in] | pUserData | Pointer to user data. |
[in] | nPriority | Thread priority, set to 0 at default. |
[in] | szStack | Stack size for thread, set to 0 at default. |
[in] | lpfThreadProc | Function address for thread procedure. |
[in] | param | User parameters passed to thread procedure. |
Callback function to exit from the current thread.
[in] | pUserData | Pointer to user data. |
void(* FXMEM_SystemMgr::Free) (struct _FXMEM_SystemMgr *pMgr, void *pointer, int flags) |
A pointer type to a free function.
The function prototype is:
void Free(FXMEM_SystemMgr* pMgr, void* pointer, int flags);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | pointer | A pointer to a memory block. |
[in] | flags | Memory allocation attributes. |
void(* FXMEM_SystemMgr2::Free) (struct _FXMEM_SystemMgr2 *pMgr, void *memory) |
Called when an addition memory pool becomes empty.
[in] | pMgr | A pointer to a FXMEM_SystemMgr2 object. |
[in] | memory | A pointer to a memory block. |
Callback function to get handle of the current thread.
[in] | pUserData | Pointer to user data. |
Callback function to get thread priority.
[in] | pUserData | Pointer to user data. |
[in] | hThread | Thread handle specifies a thread to retrieve its priority. |
void*(* FXMEM_SystemMgr::Lock) (struct _FXMEM_SystemMgr *pMgr, void *handle) |
A pointer type to a lock function.
The function prototype is:
void Lock(FXMEM_SystemMgr* pMgr, void* handle);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | handle | A handle to a memory block. |
void*(* IFX_Allocator::m_Alloc) (struct _IFX_Allocator *pAllocator, size_t size) |
A pointer type to an allocation function.
The function prototype is:
void* Alloc(IFX_Allocator* pAllocator, size_t size);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | size | The size in bytes to allocate. |
void*(* IFX_Allocator::m_AllocDebug) (struct _IFX_Allocator *pAllocator, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function.
The function prototype is:
void* AllocDebug(IFX_Allocator* pAllocator, size_t size, FX_LPCSTR filename, int line);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | size | The size in bytes to allocate. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
FX_CHAR CFX_StringBufTemplate< limit >::m_Buffer[limit] |
The fixed string buffer.
void(* IFX_Allocator::m_Free) (struct _IFX_Allocator *pAllocator, void *p) |
A pointer type to a free function.
The function prototype is:
void free(IFX_Allocator* pAllocator, void* p);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | p | Address of a memory block. |
void*(* IFX_Allocator::m_Realloc) (struct _IFX_Allocator *pAllocator, void *p, size_t size) |
A pointer type to a re-allocation function.
The function prototype is:
void* Realloc(IFX_Allocator* pAllocator, void* p, size_t size);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | p | Pointer to reallocate. |
[in] | size | The new size in bytes to reallocate. |
void*(* IFX_Allocator::m_ReallocDebug) (struct _IFX_Allocator *pAllocator, void *p, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode re-allocation function.
The function prototype is:
void* ReallocDebug(IFX_Allocator* pAllocator, void* p, size_t size, FX_LPCSTR filename, int line);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | p | Pointer to reallocate. |
[in] | size | The new size in bytes to reallocate. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
FX_BOOL(* FXMEM_SystemMgr2::More) (struct _FXMEM_SystemMgr2 *pMgr, size_t alloc_size, void **new_memory, size_t *new_size) |
Called when fixed memory manager needs more memory.
[in] | pMgr | A pointer to a FXMEM_SystemMgr2 object. |
[in] | alloc_size | The size that API is trying to allocate. |
[out] | new_memory | It receives the newly allocated memory. |
[out] | new_size | It receives the newly allocated size. The newly allocated size should be at least alloc_size + 32. |
void(* FXMEM_Debugger::OnAlloc) (FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags) |
A pointer type to an allocation-callback function.
The function prototype is:
void OnAlloc(FXMEM_FoxitMgr* pMgr, void* p, size_t size, int flags);
[in] | pMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | p | Address of the allocated memory block. |
[in] | size | The size in bytes allocated. |
[in] | flags | Memory allocation attributes. |
void(* FXMEM_Debugger::OnAllocDebug) (FXMEM_FoxitMgr *pMgr, void *p, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation-callback function.
The function prototype is:
void OnAllocDebug(FXMEM_FoxitMgr* pMgr, void* p, size_t size, int flags, FX_LPCSTR file, int line);
[in] | pMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | p | Address of the allocated memory block. |
[in] | size | The size in bytes allocated. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void(* FXMEM_Debugger::OnFree) (FXMEM_FoxitMgr *pMgr, void *p, int flags) |
A pointer type to a free-callback function.
The function prototype is:
void OnFree(FXMEM_FoxitMgr* pMgr, void* p, int flags);
[in] | pMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | p | Address of the memory block to be freed. |
[in] | flags | Memory allocation attributes. |
void(* FXMEM_Debugger::OnRealloc) (FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags) |
A pointer type to a reallocation-callback function.
The function prototype is:
void OnRealloc(FXMEM_FoxitMgr* pMgr, void* old_p, void* new_p, size_t size, int flags);
[in] | pMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | old_p | Address of the old memory block. |
[in] | new_p | Address of the new memory block. |
[in] | size | The size in bytes reallocated. |
[in] | flags | Memory allocation attributes. |
void(* FXMEM_Debugger::OnReallocDebug) (FXMEM_FoxitMgr *pMgr, void *old_p, void *new_p, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode reallocation-callback function.
The function prototype is:
void OnReallocDebug(FXMEM_FoxitMgr* pMgr, void* old_p, void* new_p, size_t size, int flags, FX_LPCSTR file, int line);
[in] | pMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | old_p | Address of the old memory block. |
[in] | new_p | Address of the new memory block. |
[in] | size | The size in bytes reallocated. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void(* FXMEM_Debugger::OnTag) (FXMEM_FoxitMgr *pMgr, FX_LPCSTR tag) |
A pointer type to a tag-callback function.
The function prototype is:
void OnTag(FXMEM_FoxitMgr* pMgr, FX_LPCSTR tag);
[in] | pMgr | A pointer to a FXMEM_FoxitMgr object. |
[in] | tag | Tag string. |
void(* FXMEM_SystemMgr::Purge) (struct _FXMEM_SystemMgr *pMgr) |
A pointer type to a purge function, which can be used to purge excessive memory without touching any used memory.
The function prototype is:
void Purge(FXMEM_SystemMgr* pMgr);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
void*(* FXMEM_SystemMgr::Realloc) (struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags) |
A pointer type to a reallocation function.
The function prototype is:
void* Realloc(FXMEM_SystemMgr* pMgr, void* pointer, size_t size, int flags);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | pointer | A pointer to a memory block. |
[in] | size | The size in bytes to reallocate. |
[in] | flags | Memory allocation attributes. |
void*(* FXMEM_SystemMgr::ReallocDebug) (struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode reallocation function.
The function prototype is:
void ReallocDebug(FXMEM_SystemMgr* pMgr, void* pointer, size_t size, int flags, FX_LPCSTR file, int line);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | pointer | A pointer to a memory block. |
[in] | size | The size in bytes to reallocate. |
[in] | flags | Memory allocation attributes. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void(* FX_THREADHANDLER::SetThreadPriority) (FX_LPVOID pUserData, FX_HTHREAD hThread, FX_INT32 nPriority) |
Callback function to set thread priority.
[in] | pUserData | Pointer to user data. |
[in] | hThread | Thread handle specifies a thread to set its priority. |
[in] | nPriority | Thread priority code. |
FX_INT32 FXCRT_DATETIMEZONE::tzHour |
Hour of time zone, from -12 to 12.
Positive value for the eastern time zone, and negative value for the western time zone.
void(* FXMEM_SystemMgr::Unlock) (struct _FXMEM_SystemMgr *pMgr, void *handle) |
A pointer type to a unlock function.
The function prototype is:
void Unlock(FXMEM_SystemMgr* pMgr, void* handle);
[in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
[in] | handle | A handle to a memory block. |
FX_INT32(* FX_THREADHANDLER::WaitForMultipleThreads) (FX_LPVOID pUserData, const FX_HTHREAD *pThreads, FX_INT32 nCount) |
Wait for termination of multiple threads.
[in] | pUserData | Pointer to user data. |
[in] | pThreads | Pointer to array of thread handles. |
[in] | nCount | Number of threads in array. |
Wait for termination of a single thread.
[in] | pUserData | Pointer to user data. |
[in] | hThread | Thread handle specifies a thread to wait. |
Callback function to change CPU time to another thread.
[in] | pUserData | Pointer to user data. |