22OF_ASSUME_NONNULL_BEGIN
38@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
void *
mutableItems
39 OF_RETURNS_INNER_POINTER;
45 OF_RETURNS_INNER_POINTER;
51 OF_RETURNS_INNER_POINTER;
60+ (instancetype)dataWithCapacity: (
size_t)capacity;
70+ (instancetype)dataWithItemSize: (
size_t)itemSize capacity: (
size_t)capacity;
80- (instancetype)initWithCapacity: (
size_t)capacity;
91- (instancetype)initWithItemSize: (
size_t)itemSize capacity: (
size_t)capacity;
102- (
void *)mutableItemAtIndex: (
size_t)index OF_RETURNS_INNER_POINTER;
109- (void)addItem: (const
void *)item;
117- (void)insertItem: (const
void *)item atIndex: (
size_t)index;
125- (void)addItems: (const
void *)items count: (
size_t)count;
134- (void)insertItems: (const
void *)items
135 atIndex: (
size_t)index
136 count: (
size_t)count;
144- (void)increaseCountBy: (
size_t)count;
151- (void)removeItemAtIndex: (
size_t)index;
158- (void)removeItemsInRange: (
OFRange)range;
A class for storing arbitrary data in an array.
Definition OFData.h:46
A class for storing and manipulating arbitrary data in an array.
Definition OFMutableData.h:30
void removeAllItems()
Removes all items.
Definition OFMutableData.m:280
void * mutableItems
All items of the OFMutableData as a C array.
Definition OFMutableData.h:39
void makeImmutable()
Converts the mutable data to an immutable data.
Definition OFMutableData.m:292
void removeLastItem()
Removes the last item.
Definition OFMutableData.m:270
void * mutableFirstItem
The first item of the OFMutableData or NULL.
Definition OFMutableData.h:45
void * mutableLastItem
The last item of the OFMutableData or NULL.
Definition OFMutableData.h:51
A range.
Definition OFObject.h:110