00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #import "OFObject.h"
00018
00019 @class OFString;
00020
00027 @interface OFDataArray: OFObject <OFCopying, OFComparing>
00028 {
00029 char *data;
00030 size_t count;
00031 size_t itemSize;
00032 }
00033
00034 #ifdef OF_HAVE_PROPERTIES
00035 @property (readonly) size_t count;
00036 @property (readonly) size_t itemSize;
00037 #endif
00038
00045 + dataArrayWithItemSize: (size_t)is;
00046
00054 + dataArrayWithContentsOfFile: (OFString*)path;
00055
00063 - initWithItemSize: (size_t)is;
00064
00072 - initWithContentsOfFile: (OFString*)path;
00073
00077 - (size_t)count;
00078
00082 - (size_t)itemSize;
00083
00087 - (void*)cArray;
00088
00095 - (void*)itemAtIndex: (size_t)index;
00096
00100 - (void*)firstItem;
00101
00105 - (void*)lastItem;
00106
00112 - (void)addItem: (void*)item;
00113
00120 - (void)addItem: (void*)item
00121 atIndex: (size_t)index;
00122
00129 - (void)addNItems: (size_t)nitems
00130 fromCArray: (void*)carray;
00131
00139 - (void)addNItems: (size_t)nitems
00140 fromCArray: (void*)carray
00141 atIndex: (size_t)index;
00142
00148 - (void)removeItemAtIndex: (size_t)index;
00149
00155 - (void)removeNItems: (size_t)nitems;
00156
00163 - (void)removeNItems: (size_t)nitems
00164 atIndex: (size_t)index;
00165 @end
00166
00174 @interface OFBigDataArray: OFDataArray
00175 {
00176 size_t size;
00177 }
00178 @end