@@ -69,16 +69,16 @@ @throw [OFOutOfRangeException newWithClass: isa]; return data + index * itemsize; } -- (void*)last +- (void*)lastItem { return data + (count - 1) * itemsize; } -- add: (void*)item +- addItem: (void*)item { if (SIZE_MAX - count < 1) @throw [OFOutOfRangeException newWithClass: isa]; data = [self resizeMem: data @@ -191,11 +191,11 @@ lastpagebyte = getpagesize() - 1; return self; } -- add: (void*)item +- addItem: (void*)item { size_t nsize; if (SIZE_MAX - count < 1 || count + 1 > SIZE_MAX / itemsize) @throw [OFOutOfRangeException newWithClass: isa];