Jabber Guest iOS SDK

- Main Page
- Modules
- Classes

All Classes Functions Variables Enumerations Enumerator Properties Groups
NSData+Base64.h
1 //This identical class exists in the Evernote SDK.
2 //
3 // NSData+Base64.h
4 // base64
5 //
6 // Created by Matt Gallagher on 2009/06/03.
7 // Copyright 2009 Matt Gallagher. All rights reserved.
8 //
9 // This software is provided 'as-is', without any express or implied
10 // warranty. In no event will the authors be held liable for any damages
11 // arising from the use of this software. Permission is granted to anyone to
12 // use this software for any purpose, including commercial applications, and to
13 // alter it and redistribute it freely, subject to the following restrictions:
14 //
15 // 1. The origin of this software must not be misrepresented; you must not
16 // claim that you wrote the original software. If you use this software
17 // in a product, an acknowledgment in the product documentation would be
18 // appreciated but is not required.
19 // 2. Altered source versions must be plainly marked as such, and must not be
20 // misrepresented as being the original software.
21 // 3. This notice may not be removed or altered from any source
22 // distribution.
23 //
24
25 #import <Foundation/Foundation.h>
26
27 void *NewBase64Decode(
28 const char *inputBuffer,
29 size_t length,
30 size_t *outputLength);
31
32 char *NewBase64Encode(
33 const void *inputBuffer,
34 size_t length,
35 bool separateLines,
36 size_t *outputLength);
37
38 @interface NSData (Base64)
39
40 + (NSData *)dataFromBase64String:(NSString *)aString;
41 - (NSString *)base64EncodedString;
42
43 @end