@@ -17,11 +17,11 @@ #include "config.h" #import "OFNull.h" #import "OFString.h" #import "OFXMLElement.h" -#import "OFDataArray.h" +#import "OFData.h" #import "OFInvalidArgumentException.h" @interface OFNull () - (OFString *)of_JSONRepresentationWithOptions: (int)options @@ -99,19 +99,16 @@ depth: (size_t)depth { return @"null"; } -- (OFDataArray *)messagePackRepresentation +- (OFData *)messagePackRepresentation { - OFDataArray *data = [OFDataArray dataArrayWithItemSize: 1 - capacity: 1]; uint8_t type = 0xC0; - [data addItem: &type]; - - return data; + return [OFData dataWithItems: &type + count: 1]; } - autorelease { return self;