// // BSONCodec.h // BSON Codec for Objective-C. // // Created by Martin Kou on 8/17/10. // MIT License, see LICENSE file for details. // #import #import @protocol BSONCoding - (uint8_t) BSONTypeID; - (NSData *) BSONEncode; - (NSData *) BSONRepresentation; + (id) BSONFragment: (NSData *) data at: (const void **) base ofType: (uint8_t) typeID; @end @protocol BSONObjectCoding - (id) initWithBSONDictionary: (NSDictionary *) data; - (NSDictionary *) BSONDictionary; @end @interface NSObject (BSONObjectCoding) - (NSData *) BSONEncode; - (NSData *) BSONRepresentation; @end @interface NSDictionary (BSON) @end @interface NSData (BSON) - (NSDictionary *) BSONValue; @end @interface NSNumber (BSON) @end @interface NSString (BSON) @end @interface NSArray (BSON) @end @interface NSNull (BSON) @end @interface NSCalendarDate (BSON) @end