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

Instance Methods

(void) - dealloc
 
(void *) - getCptr
 
(id) - init
 
(id) - initWithCptr:swigOwnCObject:
 

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...
 

Additional Inherited Members

- Protected Attributes inherited from FSBase
BOOL swigCMemOwn
 
void * swigCPtr
 

Detailed Description

This class provides utility functions such as encoding or compression. Foxit PDF SDK library should has been initialized successfully by function FSLibrary::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.

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

◆ dealloc

- (void) dealloc

Reimplemented from FSBase.

◆ 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.

◆ getCptr

- (void*) getCptr

Reimplemented from FSBase.

◆ init

- (id) init

◆ initWithCptr:swigOwnCObject:

- (id) initWithCptr: (void *)  cptr
swigOwnCObject: (BOOL)  ownCObject 

Reimplemented from FSBase.