@@ -18,13 +18,18 @@ * OFBigDataArray, which allocates the memory in pages rather than in bytes. */ @interface OFDataArray: OFObject { char *data; + size_t count; size_t itemSize; - size_t count; } + +#ifdef OF_HAVE_PROPERTIES +@property (readonly) size_t count; +@property (readonly) size_t itemSize; +#endif /** * Creates a new OFDataArray whose items all have the same size. * * \param is The size of each element in the OFDataArray