ObjFW  Diff

Differences From Artifact [1c69665b63]:

To Artifact [2158b59870]:


213
214
215
216
217
218
219

220



221
222
223
224

225



226
227
228
229
230
231
232
- (id*)objects
{
	return [_array items];
}

- (id)objectAtIndex: (size_t)index
{

	return *((id*)[_array itemAtIndex: index]);



}

- (id)objectAtIndexedSubscript: (size_t)index
{

	return *((id*)[_array itemAtIndex: index]);



}

- (void)getObjects: (id*)buffer
	   inRange: (of_range_t)range
{
	id *objects = [_array items];
	size_t i, count = [_array count];







>
|
>
>
>




>
|
>
>
>







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
240
- (id*)objects
{
	return [_array items];
}

- (id)objectAtIndex: (size_t)index
{
	@try {
		return *((id*)[_array itemAtIndex: index]);
	} @catch (OFOutOfRangeException *e) {
		@throw [OFOutOfRangeException exceptionWithClass: [self class]];
	}
}

- (id)objectAtIndexedSubscript: (size_t)index
{
	@try {
		return *((id*)[_array itemAtIndex: index]);
	} @catch (OFOutOfRangeException *e) {
		@throw [OFOutOfRangeException exceptionWithClass: [self class]];
	}
}

- (void)getObjects: (id*)buffer
	   inRange: (of_range_t)range
{
	id *objects = [_array items];
	size_t i, count = [_array count];