author | Jens Alfke <jens@mooseyard.com> |
Wed Jun 03 17:20:53 2009 -0700 (2009-06-03) | |
changeset 17 | 90a70925562b |
child 19 | f6c91b9da05b |
permissions | -rw-r--r-- |
jens@16 | 1 |
// |
jens@16 | 2 |
// MYDEREncoder.h |
jens@16 | 3 |
// MYCrypto |
jens@16 | 4 |
// |
jens@16 | 5 |
// Created by Jens Alfke on 5/29/09. |
jens@16 | 6 |
// Copyright 2009 Jens Alfke. All rights reserved. |
jens@16 | 7 |
// |
jens@16 | 8 |
|
jens@16 | 9 |
#import <Foundation/Foundation.h> |
jens@16 | 10 |
|
jens@16 | 11 |
|
jens@16 | 12 |
@interface MYDEREncoder : NSObject |
jens@16 | 13 |
{ |
jens@16 | 14 |
id _rootObject; |
jens@16 | 15 |
NSMutableData *_output; |
jens@16 | 16 |
NSError *_error; |
jens@16 | 17 |
} |
jens@16 | 18 |
|
jens@16 | 19 |
- (id) initWithRootObject: (id)object; |
jens@16 | 20 |
+ (NSData*) encodeRootObject: (id)rootObject error: (NSError**)outError; |
jens@16 | 21 |
|
jens@16 | 22 |
@property (readonly) NSData* output; |
jens@16 | 23 |
@property (readonly, retain) NSError *error; |
jens@16 | 24 |
|
jens@16 | 25 |
@end |