18 OF_ASSUME_NONNULL_BEGIN
34 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
void *
mutableItems 35 OF_RETURNS_INNER_POINTER;
41 OF_RETURNS_INNER_POINTER;
46 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
void *
mutableLastItem 47 OF_RETURNS_INNER_POINTER;
56 + (instancetype)dataWithCapacity: (
size_t)capacity;
66 + (instancetype)dataWithItemSize: (
size_t)itemSize capacity: (
size_t)capacity;
76 - (instancetype)initWithCapacity: (
size_t)capacity;
87 - (instancetype)initWithItemSize: (
size_t)itemSize capacity: (
size_t)capacity;
98 - (
void *)mutableItemAtIndex: (
size_t)index OF_RETURNS_INNER_POINTER;
105 - (void)addItem: (const
void *)item;
113 - (void)insertItem: (const
void *)item atIndex: (
size_t)index;
121 - (void)addItems: (const
void *)items count: (
size_t)count;
130 - (void)insertItems: (const
void *)items
131 atIndex: (
size_t)index
132 count: (
size_t)count;
140 - (void)increaseCountBy: (
size_t)count;
147 - (void)removeItemAtIndex: (
size_t)index;
154 - (void)removeItemsInRange: (
OFRange)range;
172 OF_ASSUME_NONNULL_END
void * mutableLastItem
The last item of the OFMutableData or NULL.
Definition: OFMutableData.h:47
void * mutableFirstItem
The first item of the OFMutableData or NULL.
Definition: OFMutableData.h:41
void makeImmutable()
Converts the mutable data to an immutable data.
Definition: OFMutableData.m:288
void removeAllItems()
Removes all items.
Definition: OFMutableData.m:276
void * mutableItems
All items of the OFMutableData as a C array.
Definition: OFMutableData.h:35
A class for storing arbitrary data in an array.
Definition: OFData.h:41
void removeLastItem()
Removes the last item.
Definition: OFMutableData.m:266
A class for storing and manipulating arbitrary data in an array.
Definition: OFMutableData.h:25
A range.
Definition: OFObject.h:106