@@ -506,10 +506,23 @@ removePageIfEmpty(_page); } [super dealloc]; } + +- (void *)mutableItems +{ + return _items; +} + +- (void *)mutableItemAtIndex: (size_t)idx +{ + if (idx >= _count) + @throw [OFOutOfRangeException exception]; + + return _items + idx * _itemSize; +} - (void)zero { of_explicit_memset(_items, 0, _count * _itemSize); }