@@ -17,11 +17,11 @@ #import "OFObject.h" #import "OFMessagePackRepresentation.h" OF_ASSUME_NONNULL_BEGIN -@class OFDataArray; +@class OFData; /*! * @class OFMessagePackExtension \ * OFMessagePackExtension.h ObjFW/OFMessagePackExtension.h * @@ -29,11 +29,11 @@ */ @interface OFMessagePackExtension: OFObject { int8_t _type; - OFDataArray *_data; + OFData *_data; } /*! * The MessagePack extension type. */ @@ -40,11 +40,11 @@ @property (readonly, nonatomic) int8_t type; /*! * @return The data of the extension. */ -@property (readonly, nonatomic) OFDataArray *data; +@property (readonly, nonatomic) OFData *data; /*! * @brief Creates a new OFMessagePackRepresentation with the specified type and * data. * @@ -51,11 +51,11 @@ * @param type The MessagePack extension type * @param data The data for the extension * @return A new, autoreleased OFMessagePackRepresentation */ + (instancetype)extensionWithType: (int8_t)type - data: (OFDataArray *)data; + data: (OFData *)data; - init OF_UNAVAILABLE; /*! * @brief Initializes an already allocated OFMessagePackRepresentation with the @@ -64,9 +64,9 @@ * @param type The MessagePack extension type * @param data The data for the extension * @return An initialized OFMessagePackRepresentation */ - initWithType: (int8_t)type - data: (OFDataArray *)data OF_DESIGNATED_INITIALIZER; + data: (OFData *)data OF_DESIGNATED_INITIALIZER; @end OF_ASSUME_NONNULL_END