Differences From Artifact [a9d438e321]:
- File src/OFDataArray.h — part of check-in [bfa01e9b5c] at 2011-06-28 21:07:31 on branch trunk — Add serialization and deserialization to OFDataArray. (user: js, size: 6920) [annotate] [blame] [check-ins using]
To Artifact [beb53a5545]:
- File
src/OFDataArray.h
— part of check-in
[57ef5e22ab]
at
2011-11-14 18:33:16
on branch trunk
— Make OFDataArray's cArray a property.
This makes sense as the returned array is not a copy and may even be
changed directly. (user: js, size: 7043) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
33 34 35 36 37 38 39 40 41 42 43 44 45 46 | { char *data; size_t count; size_t itemSize; } #ifdef OF_HAVE_PROPERTIES @property (readonly) size_t count; @property (readonly) size_t itemSize; #endif /** * \brief Creates a new OFDataArray with an item size of 1. * | > | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | { char *data; size_t count; size_t itemSize; } #ifdef OF_HAVE_PROPERTIES @property (readonly, getter=cArray) void *data; @property (readonly) size_t count; @property (readonly) size_t itemSize; #endif /** * \brief Creates a new OFDataArray with an item size of 1. * |
︙ | ︙ | |||
138 139 140 141 142 143 144 145 146 147 148 149 150 151 | * * \return The size of each item in the OFDataArray in bytes */ - (size_t)itemSize; /** * \brief Returns all elements of the OFDataArray as a C array. * * 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; | > > | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | * * \return The size of each item in the OFDataArray in bytes */ - (size_t)itemSize; /** * \brief Returns all elements of the OFDataArray as a C array. * * 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; |
︙ | ︙ |