18 #import "OFSerialization.h"
39 #ifdef OF_HAVE_PROPERTIES
40 @property (readonly, getter=cArray)
void *data;
41 @property (readonly)
size_t count;
42 @property (readonly)
size_t itemSize;
50 + (instancetype)dataArray;
58 + (instancetype)dataArrayWithItemSize: (
size_t)itemSize;
67 + (instancetype)dataArrayWithContentsOfFile: (
OFString*)path;
76 + (instancetype)dataArrayWithContentsOfURL: (
OFURL*)URL;
85 + (instancetype)dataArrayWithStringRepresentation: (
OFString*)string;
94 + (instancetype)dataArrayWithBase64EncodedString: (
OFString*)string;
110 - initWithItemSize: (
size_t)itemSize;
119 - initWithContentsOfFile: (
OFString*)path;
128 - initWithContentsOfURL: (
OFURL*)URL;
137 - initWithStringRepresentation: (
OFString*)string;
146 - initWithBase64EncodedString: (
OFString*)string;
172 - (void*)cArray OF_RETURNS_INNER_POINTER;
180 - (void*)itemAtIndex: (
size_t)index OF_RETURNS_INNER_POINTER;
187 - (void*)firstItem OF_RETURNS_INNER_POINTER;
194 - (void*)lastItem OF_RETURNS_INNER_POINTER;
201 - (void)addItem: (const
void*)item;
209 - (void)insertItem: (const
void*)item
210 atIndex: (
size_t)index;
218 - (void)addItemsFromCArray: (const
void*)cArray
219 count: (
size_t)count;
228 - (void)insertItemsFromCArray: (const
void*)cArray
229 atIndex: (
size_t)index
230 count: (
size_t)count;
237 - (void)removeItemAtIndex: (
size_t)index;
244 - (void)removeItemsInRange: (
of_range_t)range;
249 - (void)removeLastItem;
254 - (void)removeAllItems;
268 - (
OFString*)stringByBase64Encoding;
275 - (void)writeToFile: (
OFString*)path;
291 #import "OFDataArray+Hashing.h"