summaryrefslogtreecommitdiffstats
path: root/Liaison/LiDataTranslator.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:45:08 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:45:08 -0400
commit17349a5e426dc7acf1216a3767a22f69974cbca0 (patch)
tree20029d02f07ab6257cccec36d34fb312f796e1d1 /Liaison/LiDataTranslator.h
downloadliaison-17349a5e426dc7acf1216a3767a22f69974cbca0.tar.gz
liaison-17349a5e426dc7acf1216a3767a22f69974cbca0.zip
Initial commit.
Diffstat (limited to 'Liaison/LiDataTranslator.h')
-rw-r--r--Liaison/LiDataTranslator.h27
1 files changed, 27 insertions, 0 deletions
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 <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 \ No newline at end of file