summaryrefslogtreecommitdiffstats
path: root/Liaison/LiDataTranslator.h
blob: f988d711c0490867ddf3466c02b10418ea55031c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
//  LiDataTranslator.h
//  Liaison
//
//  Created by Brian Cully on Thu Sep 25 2003.
//  Copyright (c) 2003 Brian Cully. All rights reserved.
//

#define LiPlainEncoding 0x10101010

#import <Foundation/Foundation.h>

@interface LiDataTranslator : NSObject
+ (LiDataTranslator *)sharedTranslator;
- (NSData *)decodeData: (NSData *)someData;
- (NSData *)encodeData: (NSData *)someData;
@end

@interface NSData (LiDataTranslator)
- (NSData *)decodedData;
- (NSData *)encodedData;
@end

@interface NSDictionary (LiDataTranslator)
+ (NSDictionary *)dictionaryWithEncodedData: (NSData *)someData;
- (NSData *)encodedData;
@end