Foxit PDF SDK
foxit::common::Codec类 参考
类 foxit::common::Codec 继承关系图:
foxit::Base

静态 Public 成员函数

static String Base64Decode (const void *encoded_data_buffer, size_t length)
 使用Base64算法解码编码的数据缓冲区。 更多...
 
static String Base64Encode (const void *data_buffer, size_t length)
 使用Base64算法编码源数据缓冲区。 更多...
 
static String FlateCompress (const void *data_buffer, size_t length)
 使用DEFLATE算法压缩源数据缓冲区。 更多...
 
static String FlateDecompress (const void *compressed_data_buffer, size_t length)
 使用DEFLATE算法解压缩压缩的数据缓冲区。 更多...
 

额外继承的成员函数

- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类提供编码或压缩等实用功能。 在调用此类的任何函数之前,应通过函数 Library::Initialize 成功初始化Foxit PDF SDK库。

成员函数说明

◆ Base64Decode()

static String foxit::common::Codec::Base64Decode ( const void *  encoded_data_buffer,
size_t  length 
)
static

使用Base64算法解码编码的数据缓冲区。

参数
[in]encoded_data_buffer编码的源数据缓冲区。
[in]length数据缓冲区的字节长度。
返回
解码后的数据。

◆ Base64Encode()

static String foxit::common::Codec::Base64Encode ( const void *  data_buffer,
size_t  length 
)
static

使用Base64算法编码源数据缓冲区。

参数
[in]data_buffer原始源数据缓冲区。
[in]length数据缓冲区的字节长度。
返回
编码后的数据。

◆ FlateCompress()

static String foxit::common::Codec::FlateCompress ( const void *  data_buffer,
size_t  length 
)
static

使用DEFLATE算法压缩源数据缓冲区。

参数
[in]data_buffer原始源数据缓冲区。
[in]length数据缓冲区的字节长度。
返回
压缩后的数据。

◆ FlateDecompress()

static String foxit::common::Codec::FlateDecompress ( const void *  compressed_data_buffer,
size_t  length 
)
static

使用DEFLATE算法解压缩压缩的数据缓冲区。

参数
[in]compressed_data_buffer压缩的源数据缓冲区。
[in]length数据缓冲区的字节长度。
返回
解压缩后的数据。