Differences From Artifact [4922f55b79]:
- File
src/OFDataArray.h
— part of check-in
[d5ddb2cb48]
at
2012-06-06 13:09:08
on branch trunk
— Rework OFDataArray API.
Also adds more checks. (user: js, size: 6868) [annotate] [blame] [check-ins using] [more...]
To Artifact [2fa85a1a7b]:
- File src/OFDataArray.h — part of check-in [881cfff24e] at 2012-08-03 18:45:44 on branch trunk — Add ARC type qualifiers. (user: js, size: 6968) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
147 148 149 150 151 152 153 | * \warning The pointer is only valid until the OFDataArray is changed! * * Modifying the returned array directly is allowed and will change the contents * of the data array. * * \return All elements of the OFDataArray as a C array */ | | | | | | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | * \warning The pointer is only valid until the OFDataArray is changed! * * Modifying the returned array directly is allowed and will change the contents * of the data array. * * \return All elements of the OFDataArray as a C array */ - (void*)cArray OF_RETURNS_INNER_POINTER; /** * \brief Returns a specific item of the OFDataArray. * * \param index The number of the item to return * \return The specified item of the OFDataArray */ - (void*)itemAtIndex: (size_t)index OF_RETURNS_INNER_POINTER; /** * \brief Returns the first item of the OFDataArray. * * \return The first item of the OFDataArray or NULL */ - (void*)firstItem OF_RETURNS_INNER_POINTER; /** * \brief Returns the last item of the OFDataArray. * * \return The last item of the OFDataArray or NULL */ - (void*)lastItem OF_RETURNS_INNER_POINTER; /** * \brief Adds an item to the OFDataArray. * * \param item A pointer to an arbitrary item */ - (void)addItem: (const void*)item; |
︙ | ︙ |