NSData(SPNSExtensions) Category Reference
| Declared in | SPNSExtensions.h |
Tasks
-
+ dataWithBase64EncodedString:Creates an NSData object by parsing a Base64 encoded String.
-
– initWithBase64EncodedString:Creates an NSData object by parsing a Base64 encoded String.
-
– base64EncodingReturns the Base64 representation of the NSData object.
-
– base64EncodingWithLineLength:Returns the Base64 representation of the NSData object, separated into lines.
-
+ dataWithUncompressedContentsOfFile:If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.
-
– gzipDeflateGzip-compresses the contents of this NSData object into a new NSData instance.
-
– gzipInflateUncompresses the GZip-compressed contents of this NSData object into a new NSData instance.
Class Methods
dataWithBase64EncodedString:
Creates an NSData object by parsing a Base64 encoded String.
+ (instancetype)dataWithBase64EncodedString:(NSString *)stringDiscussion
Creates an NSData object by parsing a Base64 encoded String.
Declared In
SPNSExtensions.hdataWithUncompressedContentsOfFile:
If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.
+ (instancetype)dataWithUncompressedContentsOfFile:(NSString *)fileDiscussion
If the file has the extension ‘.gz’, returns the uncompressed contents of the GZip-compressed file; otherwise, returns the unprocessed contents.
Declared In
SPNSExtensions.hInstance Methods
base64Encoding
Returns the Base64 representation of the NSData object.
- (NSString *)base64EncodingDiscussion
Returns the Base64 representation of the NSData object.
Declared In
SPNSExtensions.hbase64EncodingWithLineLength:
Returns the Base64 representation of the NSData object, separated into lines.
- (NSString *)base64EncodingWithLineLength:(uint)lineLengthDiscussion
Returns the Base64 representation of the NSData object, separated into lines.
Declared In
SPNSExtensions.hgzipDeflate
Gzip-compresses the contents of this NSData object into a new NSData instance.
- (instancetype)gzipDeflateDiscussion
Gzip-compresses the contents of this NSData object into a new NSData instance.
Declared In
SPNSExtensions.h