Declared in SPNSExtensions.h

Overview

Sparrow extensions for the NSData class.

Tasks

Class Methods

dataWithBase64EncodedString:

Creates an NSData object by parsing a Base64 encoded String.

+ (instancetype)dataWithBase64EncodedString:(NSString *)string

Discussion

Creates an NSData object by parsing a Base64 encoded String.

Declared In

SPNSExtensions.h

dataWithUncompressedContentsOfFile:

If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.

+ (instancetype)dataWithUncompressedContentsOfFile:(NSString *)file

Discussion

If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.

Declared In

SPNSExtensions.h

Instance Methods

base64Encoding

Returns the Base64 representation of the NSData object.

- (NSString *)base64Encoding

Discussion

Returns the Base64 representation of the NSData object.

Declared In

SPNSExtensions.h

base64EncodingWithLineLength:

Returns the Base64 representation of the NSData object, separated into lines.

- (NSString *)base64EncodingWithLineLength:(uint)lineLength

Discussion

Returns the Base64 representation of the NSData object, separated into lines.

Declared In

SPNSExtensions.h

gzipDeflate

Gzip-compresses the contents of this NSData object into a new NSData instance.

- (instancetype)gzipDeflate

Discussion

Gzip-compresses the contents of this NSData object into a new NSData instance.

Declared In

SPNSExtensions.h

gzipInflate

Uncompresses the GZip-compressed contents of this NSData object into a new NSData instance.

- (instancetype)gzipInflate

Discussion

Uncompresses the GZip-compressed contents of this NSData object into a new NSData instance.

Declared In

SPNSExtensions.h

initWithBase64EncodedString:

Creates an NSData object by parsing a Base64 encoded String.

- (instancetype)initWithBase64EncodedString:(NSString *)string

Discussion

Creates an NSData object by parsing a Base64 encoded String.

Declared In

SPNSExtensions.h