From 17349a5e426dc7acf1216a3767a22f69974cbca0 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 14 Apr 2008 21:45:08 -0400 Subject: Initial commit. --- Liaison/LiDataTranslator.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Liaison/LiDataTranslator.h (limited to 'Liaison/LiDataTranslator.h') diff --git a/Liaison/LiDataTranslator.h b/Liaison/LiDataTranslator.h new file mode 100644 index 0000000..f988d71 --- /dev/null +++ b/Liaison/LiDataTranslator.h @@ -0,0 +1,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 + +@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 \ No newline at end of file -- cgit v1.2.3