JubeatPlus 3.9.11
Loading...
Searching...
No Matches
NSData+Base64.h
Go to the documentation of this file.
1
11
12#import <Foundation/Foundation.h>
13
14NS_ASSUME_NONNULL_BEGIN
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
35char *_Nullable NewBase64Encode(const void *pvBuffer,
36 size_t cbLength,
37 size_t *_Nullable pcbOutputLength);
38
52void *_Nullable NewBase64Decode(const char *pszInput,
53 size_t cbLength,
54 size_t *_Nullable pcbOutputLength);
55
56#ifdef __cplusplus
57}
58#endif
59
63@interface NSData (Base64)
64
71+ (NSData *)dataFromBase64String:(NSString *)aString;
72
78- (NSString *)base64EncodedString;
79
80@end
81
82NS_ASSUME_NONNULL_END
83
84// code: language=Objective-C
85// kate: hl Objective-C;
86// vim: set ft=objc :
NS_ASSUME_NONNULL_BEGIN char *_Nullable NewBase64Encode(const void *pvBuffer, size_t cbLength, size_t *_Nullable pcbOutputLength)
Base64-encodes a byte buffer, returning a freshly allocated NUL-terminated ASCII string.
void *_Nullable NewBase64Decode(const char *pszInput, size_t cbLength, size_t *_Nullable pcbOutputLength)
Base64-decodes an ASCII buffer, returning a freshly allocated byte buffer.
NSString * base64EncodedString()
Encodes the receiver's bytes as a Base64 string.
Definition NSData+Base64.m:149