Foxit PDF SDK
fx_stream.h 文件参考

流相关定义和类的头文件。 更多...

浏览源代码.

struct  FX_HFILE
 文件访问句柄。 更多...
 
class  CFX_CachedFileRead
 缓存文件读取接口。 更多...
 
class  IFX_BufferRead
 IFX_BufferRead流提供了读取流数据的优化方法。 通常,一个流维护用于数据访问的内部缓冲区,此缓冲区可以直接提供给调用者, 从而避免数据复制。 更多...
 
class  IFX_ChunkFileStream
 基于分块的文件流接口,用于读取和写入。 更多...
 
class  IFX_FileAccess
 文件访问接口,用于打开文件。 更多...
 
class  IFX_FileRead
 文件读取接口。 更多...
 
class  IFX_FileStream
 文件流接口,用于读取和写入。 更多...
 
class  IFX_FileWrite
 文件写入接口。 更多...
 
class  IFX_MemoryStream
 内存流接口。 更多...
 
class  IFX_StreamRead
 流读取接口。 更多...
 
class  IFX_StreamWrite
 流写入接口。 更多...
 

宏定义

#define _FX_LARGEFILE_USED_
 大文件支持的预处理器。
 
#define FX_FILESIZE   FX_INT64
 直接支持大文件。
 
文件访问模式的宏定义
#define FX_FILEMODE_Write   0
 写入模式。如果文件不存在则自动创建。
 
#define FX_FILEMODE_ReadOnly   1
 只读模式。
 
#define FX_FILEMODE_Truncate   2
 清除已有内容,文件大小将为0。仅用于写入模式。
 

函数

void FX_CloseFolder (void *handle)
 关闭文件夹句柄。 更多...
 
IFX_FileAccessFX_CreateDefaultFileAccess (FX_WSTR wsPath, IFX_Allocator *pAllocator=0)
 创建基于CRT的文件I/O接口。 更多...
 
IFX_FileReadFX_CreateFileRead (FX_LPCSTR filename, IFX_Allocator *pAllocator=0)
 (仅适用于支持CRT文件访问的平台)创建基于CRT的文件读取接口。 更多...
 
IFX_FileReadFX_CreateFileRead (FX_LPCWSTR filename, IFX_Allocator *pAllocator=0)
 (仅适用于支持CRT文件访问的平台)创建基于CRT的文件读取接口。 更多...
 
IFX_FileStreamFX_CreateFileStream (FX_LPCSTR filename, FX_DWORD dwModes, IFX_Allocator *pAllocator=0)
 (仅适用于支持CRT文件访问的平台)创建基于CRT的文件I/O接口。 更多...
 
IFX_FileStreamFX_CreateFileStream (FX_LPCWSTR filename, FX_DWORD dwModes, IFX_Allocator *pAllocator=0)
 (仅适用于支持CRT文件访问的平台)创建基于CRT的文件I/O接口。 更多...
 
IFX_FileWriteFX_CreateFileWrite (FX_LPCSTR filename, IFX_Allocator *pAllocator=0)
 (仅适用于支持CRT文件访问(fopen,...)的平台)创建基于CRT的文件写入接口。 更多...
 
IFX_FileWriteFX_CreateFileWrite (FX_LPCWSTR filename, IFX_Allocator *pAllocator=0)
 (仅适用于支持CRT文件访问(fopen,...)的平台)创建基于CRT的文件写入接口。 更多...
 
FX_BOOL FX_CreateFolder (FX_LPCSTR path)
 创建新文件夹。 更多...
 
FX_BOOL FX_CreateFolder (FX_LPCWSTR path)
 创建新文件夹。 更多...
 
IFX_MemoryStreamFX_CreateMemoryStream (FX_LPBYTE pBuffer, size_t nSize, FX_BOOL bTakeOver=false, IFX_Allocator *pAllocator=0)
 通过给定的内存缓冲区创建流对象。此函数创建连续内存流对象。 更多...
 
IFX_MemoryStreamFX_CreateMemoryStream (FX_BOOL bConsecutive=false, IFX_Allocator *pAllocator=0)
 创建内存流对象。内存缓冲区将在内部创建,当需要更多空间时大小会增加。 更多...
 
FX_BOOL FX_DeleteFolder (FX_LPCSTR path)
 删除文件夹。 更多...
 
FX_BOOL FX_DeleteFolder (FX_LPCWSTR path)
 删除文件夹。 更多...
 
void FX_File_Close (FX_HFILE hFile, IFX_Allocator *pAllocator=0)
 关闭文件。 更多...
 
FX_BOOL FX_File_Copy (FX_BSTR fileNameSrc, FX_BSTR fileNameDst)
 复制文件。 更多...
 
FX_BOOL FX_File_Copy (FX_WSTR fileNameSrc, FX_WSTR fileNameDst)
 复制文件。 更多...
 
FX_BOOL FX_File_Delete (FX_BSTR fileName)
 删除文件。 更多...
 
FX_BOOL FX_File_Delete (FX_WSTR fileName)
 删除文件。 更多...
 
FX_BOOL FX_File_Exist (FX_BSTR fileName)
 确定文件是否存在。 更多...
 
FX_BOOL FX_File_Exist (FX_WSTR fileName)
 确定文件是否存在。 更多...
 
FX_BOOL FX_File_Flush (FX_HFILE hFile)
 如果需要则刷新内部缓冲区。 更多...
 
FX_INT64 FX_File_GetPosition (FX_HFILE hFile)
 获取当前文件访问位置。 更多...
 
FX_INT64 FX_File_GetSize (FX_HFILE hFile)
 获取文件大小。 更多...
 
FX_BOOL FX_File_Move (FX_BSTR fileNameSrc, FX_BSTR fileNameDst)
 移动文件。 更多...
 
FX_BOOL FX_File_Move (FX_WSTR fileNameSrc, FX_WSTR fileNameDst)
 移动文件。 更多...
 
FX_HFILE FX_File_Open (FX_BSTR fileName, FX_DWORD dwMode, IFX_Allocator *pAllocator=0)
 以指定的访问模式打开文件。 更多...
 
FX_HFILE FX_File_Open (FX_WSTR fileName, FX_DWORD dwMode, IFX_Allocator *pAllocator=0)
 以指定的访问模式打开文件。 更多...
 
size_t FX_File_Read (FX_HFILE hFile, void *pBuffer, size_t szBuffer)
 从当前文件访问位置读取数据。 更多...
 
size_t FX_File_ReadPos (FX_HFILE hFile, void *pBuffer, size_t szBuffer, FX_INT64 pos)
 从指定位置读取数据。 更多...
 
FX_INT64 FX_File_SetPosition (FX_HFILE hFile, FX_INT64 pos)
 设置当前文件访问位置。 更多...
 
FX_BOOL FX_File_Truncate (FX_HFILE hFile, FX_INT64 szFile)
 截断文件大小。 更多...
 
size_t FX_File_Write (FX_HFILE hFile, const void *pBuffer, size_t szBuffer)
 从当前文件访问位置写入数据。 更多...
 
size_t FX_File_WritePos (FX_HFILE hFile, const void *pBuffer, size_t szBuffer, FX_INT64 pos)
 在指定位置写入数据。 更多...
 
FX_WCHAR FX_GetFolderSeparator ()
 获取系统的文件夹分隔符。很可能是 '/' 或 '\'。 更多...
 
FX_BOOL FX_GetNextFile (void *handle, CFX_ByteString &filename, FX_BOOL &bFolder, FX_LPCSTR absPath=0)
 读取文件夹中的下一个条目。 更多...
 
FX_BOOL FX_GetNextFile (void *handle, CFX_WideString &filename, FX_BOOL &bFolder, FX_LPCSTR absPath=0)
 读取文件夹中的下一个条目。 更多...
 
FX_BOOL FX_IsFilePathExist (FX_LPCWSTR path)
 检查路径是否存在,包括文件路径和文件夹路径。 更多...
 
void * FX_OpenFolder (FX_LPCSTR path)
 打开文件夹进行读取。 更多...
 
void * FX_OpenFolder (FX_LPCWSTR path)
 打开文件夹进行读取。 更多...
 

详细描述

流相关定义和类的头文件。

Copyright (C) 2003-2026, Foxit Software Inc.. All Rights Reserved.

http://www.foxitsoftware.com

The following code is copyrighted and is the proprietary of Foxit Software Inc.. It is not allowed to distribute any parts of Foxit PDF SDK to third party or public without permission unless an agreement is signed between Foxit Software Inc. and customers to explicitly grant customers permissions.