Differences From Artifact [f022240c55]:
- File
src/OFMutableData.h
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 6876) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
193 194 195 196 197 198 199 | * @brief Converts the mutable URL to an immutable URL. */ - (void)makeImmutable; @end @interface OFMutableData (MutableRetrieving) /*! | | > > | > > > > > > > > > > | > > > > | < < < < < < < < < < < < < < < < < < < < | 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | * @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. */ @property (readonly, nonatomic) void *items OF_RETURNS_INNER_POINTER; /*! * The first 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 *firstItem OF_RETURNS_INNER_POINTER; /*! * 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. * * @param index The number of the item to return * @return The specified item of the OFMutableData */ - (void *)itemAtIndex: (size_t)index OF_RETURNS_INNER_POINTER; @end OF_ASSUME_NONNULL_END |