Foxit PDF SDK
FSDK::Codec类 参考

静态 Public 成员函数

static Base64Decode (encoded_data_buffer, length)
 通过 Base64 算法解码编码后的数据缓冲区。 更多...
 
static Base64Encode (data_buffer, length)
 通过 Base64 算法编码源数据缓冲区。 更多...
 
static FlateCompress (data_buffer, length)
 通过 DEFLATE 算法压缩源数据缓冲区。 更多...
 
static FlateDecompress (compressed_data_buffer, length)
 通过 DEFLATE 算法解压缩压缩后的数据缓冲区。 更多...
 

详细描述

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

成员函数说明

◆ Base64Decode()

static FSDK::Codec::Base64Decode ( encoded_data_buffer  ,
length   
)
static

通过 Base64 算法解码编码后的数据缓冲区。

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

◆ Base64Encode()

static FSDK::Codec::Base64Encode ( data_buffer  ,
length   
)
static

通过 Base64 算法编码源数据缓冲区。

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

◆ FlateCompress()

static FSDK::Codec::FlateCompress ( data_buffer  ,
length   
)
static

通过 DEFLATE 算法压缩源数据缓冲区。

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

◆ FlateDecompress()

static FSDK::Codec::FlateDecompress ( compressed_data_buffer  ,
length   
)
static

通过 DEFLATE 算法解压缩压缩后的数据缓冲区。

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