22 OF_ASSUME_NONNULL_BEGIN
40 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
void *
mutableItems
41 OF_RETURNS_INNER_POINTER;
47 OF_RETURNS_INNER_POINTER;
53 OF_RETURNS_INNER_POINTER;
62 + (instancetype)dataWithCapacity: (
size_t)capacity;
72 + (instancetype)dataWithItemSize: (
size_t)itemSize capacity: (
size_t)capacity;
82 - (instancetype)initWithCapacity: (
size_t)capacity;
93 - (instancetype)initWithItemSize: (
size_t)itemSize capacity: (
size_t)capacity;
104 - (
void *)mutableItemAtIndex: (
size_t)index OF_RETURNS_INNER_POINTER;
111 - (void)addItem: (const
void *)item;
119 - (void)insertItem: (const
void *)item atIndex: (
size_t)index;
127 - (void)addItems: (const
void *)items count: (
size_t)count;
136 - (void)insertItems: (const
void *)items
137 atIndex: (
size_t)index
138 count: (
size_t)count;
147 - (void)insertItems: (const
void *)items atIndexes: (
OFIndexSet *)indexes;
155 - (void)increaseCountBy: (
size_t)count;
162 - (void)removeItemAtIndex: (
size_t)index;
169 - (void)removeItemsInRange: (
OFRange)range;
176 - (void)removeItemsAtIndexes: (
OFIndexSet *)indexes;
194 OF_ASSUME_NONNULL_END
A class for storing arbitrary data in an array.
Definition: OFData.h:46
A class storing a set of indexes as sorted ranges.
Definition: OFIndexSet.h:31
A class for storing and manipulating arbitrary data in an array.
Definition: OFMutableData.h:32
void removeAllItems()
Removes all items.
Definition: OFMutableData.m:319
void * mutableItems
All items of the OFMutableData as a C array.
Definition: OFMutableData.h:41
void makeImmutable()
Converts the mutable data to an immutable data.
Definition: OFMutableData.m:331
void removeLastItem()
Removes the last item.
Definition: OFMutableData.m:309
void * mutableFirstItem
The first item of the OFMutableData or NULL.
Definition: OFMutableData.h:47
void * mutableLastItem
The last item of the OFMutableData or NULL.
Definition: OFMutableData.h:53
A range.
Definition: OFObject.h:116