@@ -69,11 +69,11 @@ } return self; } -- (void)addItem: (const void*)item +- (void)addItem: (const void *)item { if (SIZE_MAX - _count < 1 || _count + 1 > SIZE_MAX / _itemSize) @throw [OFOutOfRangeException exception]; if (_count + 1 > _capacity) { @@ -92,11 +92,11 @@ memcpy(_items + _count * _itemSize, item, _itemSize); _count++; } -- (void)addItems: (const void*)items +- (void)addItems: (const void *)items count: (size_t)count { if (count > SIZE_MAX - _count || _count + count > SIZE_MAX / _itemSize) @throw [OFOutOfRangeException exception]; @@ -116,11 +116,11 @@ memcpy(_items + _count * _itemSize, items, count * _itemSize); _count += count; } -- (void)insertItems: (const void*)items +- (void)insertItems: (const void *)items atIndex: (size_t)index count: (size_t)count { if (count > SIZE_MAX - _count || index > _count || _count + count > SIZE_MAX / _itemSize)