Differences From Artifact [277ddc5595]:
- File
src/OFMutableData.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 6783) [annotate] [blame] [check-ins using]
To Artifact [39f848be7d]:
- File src/OFMutableData.h — part of check-in [9fa618244f] at 2017-10-29 22:37:51 on branch trunk — Make GCC happy again (user: js, size: 6984) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
192 193 194 195 196 197 198 199 200 201 202 203 204 205 | /*! * @brief Converts the mutable URL to an immutable URL. */ - (void)makeImmutable; @end @interface OFMutableData (MutableRetrieving) /*! * All items of the OFMutableData as a C array. * * @warning The pointer is only valid until the OFMutableData is changed! * * Modifying the returned array directly is allowed and will change the contents * of the data array. | > > | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | /*! * @brief Converts the mutable URL to an immutable URL. */ - (void)makeImmutable; @end @interface OFMutableData (MutableRetrieving) /* GCC does not like overriding properties with a different type. */ #if defined(__clang__) || defined(DOXYGEN) /*! * All items of the OFMutableData as a C array. * * @warning The pointer is only valid until the OFMutableData is changed! * * Modifying the returned array directly is allowed and will change the contents * of the data array. |
︙ | ︙ | |||
219 220 221 222 223 224 225 226 227 228 229 230 231 232 | * Last item of the OFMutableData or NULL. * * Modifying the returned item directly is allowed and will change the contents * of the data array. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) void *lastItem OF_RETURNS_INNER_POINTER; /*! * @brief Returns a specific item of the OFMutableData. * * Modifying the returned item directly is allowed and will change the contents * of the data array. * | > > > > > | 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | * Last item of the OFMutableData or NULL. * * Modifying the returned item directly is allowed and will change the contents * of the data array. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) void *lastItem OF_RETURNS_INNER_POINTER; #else - (void *)items; - (nullable void *)firstItem; - (nullable void *)lastItem; #endif /*! * @brief Returns a specific item of the OFMutableData. * * Modifying the returned item directly is allowed and will change the contents * of the data array. * |
︙ | ︙ |