ObjFW  Diff

Differences From Artifact [8d40ffbf81]:

To Artifact [b6b253b742]:


128
129
130
131
132
133
134
135
136
137
138


139
140
141
142
143
144
145
146
147
{
	self = [super init];

	@try {
		if (itemSize == 0)
			@throw [OFInvalidArgumentException exception];

		_itemSize = itemSize;
		_count = count;
		_items = [self allocMemoryWithSize: itemSize
					     count: count];



		memcpy(_items, items, itemSize * count);
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}







<
<


>
>

|







128
129
130
131
132
133
134


135
136
137
138
139
140
141
142
143
144
145
146
147
{
	self = [super init];

	@try {
		if (itemSize == 0)
			@throw [OFInvalidArgumentException exception];



		_items = [self allocMemoryWithSize: itemSize
					     count: count];
		_itemSize = itemSize;
		_count = count;

		memcpy(_items, items, count * itemSize);
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}