Differences From Artifact [019e3d878c]:
- File src/OFDataArray.m — part of check-in [24928c1da1] at 2009-11-19 15:41:27 on branch trunk — Add -[removeItemAtIndex:] and -[removeNItems:atIndex:] to OFDataArray. (user: js, size: 6037) [annotate] [blame] [check-ins using]
To Artifact [a0d0c15800]:
- File src/OFDataArray.m — part of check-in [4d523be264] at 2009-11-26 09:50:12 on branch trunk — Add -[firstItem] to OFDataArray and -[firstObject] to OFArray. (user: js, size: 6124) [annotate] [blame] [check-ins using]
︙ | |||
75 76 77 78 79 80 81 82 83 84 85 86 87 88 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | + + + + + + + + | - (void*)itemAtIndex: (size_t)index { if (index >= count) @throw [OFOutOfRangeException newWithClass: isa]; return data + index * itemsize; } - (void*)firstItem { if (data == NULL || count == 0) return NULL; return data; } - (void*)lastItem { if (data == NULL || count == 0) return NULL; return data + (count - 1) * itemsize; |
︙ |