summaryrefslogtreecommitdiffstats
path: root/Liaison/LiDataTranslator.h
diff options
context:
space:
mode:
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