Differences From Artifact [73c0aec03a]:
- File
src/OFMutableAdjacentArray.m
— part of check-in
[0ddaac3f5b]
at
2020-11-05 00:24:29
on branch trunk
— Avoid -[allocMemoryWithSize:] for temporary memory
-[allocMemoryWithSize:] has book keeping overhead that is unnecessary
for temporary memory. (user: js, size: 7773) [annotate] [blame] [check-ins using] [more...]
To Artifact [40b1b9e5f0]:
- File
src/OFMutableAdjacentArray.m
— part of check-in
[627511b032]
at
2020-11-14 12:23:55
on branch trunk
— Rename of_malloc and of_calloc
The new names should be more accurate. (user: js, size: 7772) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
239 240 241 242 243 244 245 | size_t count = _array.count; id *copy; if (range.length > SIZE_MAX - range.location || range.location >= count || range.length > count - range.location) @throw [OFOutOfRangeException exception]; | | | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | size_t count = _array.count; id *copy; if (range.length > SIZE_MAX - range.location || range.location >= count || range.length > count - range.location) @throw [OFOutOfRangeException exception]; copy = of_alloc(range.length, sizeof(*copy)); memcpy(copy, objects + range.location, range.length * sizeof(id)); @try { [_array removeItemsInRange: range]; _mutations++; for (size_t i = 0; i < range.length; i++) |
︙ | ︙ |