@@ -78,30 +78,30 @@ /*! * @brief Initializes an already allocated OFMutableData with an item size of 1. * * @return An initialized OFMutableData */ -- init; +- (instancetype)init; /*! * @brief Initializes an already allocated OFMutableData whose items all have * the same size. * * @param itemSize The size of a single element in the OFMutableData * @return An initialized OFMutableData */ -- initWithItemSize: (size_t)itemSize; +- (instancetype)initWithItemSize: (size_t)itemSize; /*! * @brief Initializes an already allocated OFMutableData with enough memory to * hold the the specified number of items which all have an item size of * 1. * * @param capacity The initial capacity for the OFMutableData * @return An initialized OFMutableData */ -- initWithCapacity: (size_t)capacity; +- (instancetype)initWithCapacity: (size_t)capacity; /*! * @brief Initializes an already allocated OFMutableData with enough memory to * hold the the specified number of items which all have the same * specified size. @@ -108,20 +108,20 @@ * * @param itemSize The size of a single element in the OFMutableData * @param capacity The initial capacity for the OFMutableData * @return An initialized OFMutableData */ -- initWithItemSize: (size_t)itemSize - capacity: (size_t)capacity; - -- initWithItemsNoCopy: (const void *)items - count: (size_t)count - freeWhenDone: (bool)freeWhenDone OF_UNAVAILABLE; -- initWithItemsNoCopy: (const void *)items - itemSize: (size_t)itemSize - count: (size_t)count - freeWhenDone: (bool)freeWhenDone OF_UNAVAILABLE; +- (instancetype)initWithItemSize: (size_t)itemSize + capacity: (size_t)capacity; + +- (instancetype)initWithItemsNoCopy: (const void *)items + count: (size_t)count + freeWhenDone: (bool)freeWhenDone OF_UNAVAILABLE; +- (instancetype)initWithItemsNoCopy: (const void *)items + itemSize: (size_t)itemSize + count: (size_t)count + freeWhenDone: (bool)freeWhenDone OF_UNAVAILABLE; /*! * @brief Adds an item to the OFMutableData. * * @param item A pointer to an arbitrary item