22OF_ASSUME_NONNULL_BEGIN
38@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
void *
mutableItems
39 OF_RETURNS_INNER_POINTER;
45 OF_RETURNS_INNER_POINTER;
50@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
void *
mutableLastItem
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;
134- (void)insertItems: (
const void *)
items
135 atIndex: (size_t)index
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
size_t count
The number of items in the OFData.
Definition OFData.m:450
const void * items
All elements of the OFData as a C array.
Definition OFData.m:460
size_t itemSize
The size of a single item in the OFData in bytes.
Definition OFData.m:455
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.m:184
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.m:197
void * mutableLastItem
The last item of the OFMutableData or NULL.
Definition OFMutableData.m:207
A range.
Definition OFObject.h:110