Foxit PDF SDK
FSCodec Class Reference
Inheritance diagram for FSCodec:
FSBase

Class Methods

(NSData *) + base64Decode:
 Decode the encoded data buffer by Base64 algorithm. More...
 
(NSData *) + base64Encode:
 Encode the source data buffer by Base64 algorithm. More...
 
(NSData *) + flateCompress:
 Compress the source data buffer by DEFLATE algorithm. More...
 
(NSData *) + flateDecompress:
 Decompress the compressed data buffer by DEFLATE algorithm. More...
 

Detailed Description

This class provides utility functions such as encoding or compression. Foxit PDF SDK library should has been initialized successfully by function Library::initialize:key: before calling any function of this class.

Method Documentation

◆ base64Decode:()

+ (NSData *) base64Decode: (NSData *)  buffer

Decode the encoded data buffer by Base64 algorithm.

Decode the encoded data buffer by Base64 algorithm.

Parameters
[in]bufferThe encoded source data buffer.
Returns
The decoded data.
The decoded data.

◆ base64Encode:()

+ (NSData *) base64Encode: (NSData *)  buffer

Encode the source data buffer by Base64 algorithm.

Encode the source data buffer by Base64 algorithm.

Parameters
[in]bufferThe raw source data buffer.
Returns
The encoded data.
The encoded data.

◆ flateCompress:()

+ (NSData *) flateCompress: (NSData *)  buffer

Compress the source data buffer by DEFLATE algorithm.

Compress the source data buffer by DEFLATE algorithm.

Parameters
[in]bufferThe raw source data buffer.
Returns
The compressed data.
The compressed data.

◆ flateDecompress:()

+ (NSData *) flateDecompress: (NSData *)  buffer

Decompress the compressed data buffer by DEFLATE algorithm.

Decompress the compressed data buffer by DEFLATE algorithm.

Parameters
[in]bufferThe compressed source data buffer.
Returns
The decompressed data.
The decompressed data.