@@ -13,21 +13,25 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" +#import "OFSerialization.h" @class OFString; @class OFURL; /** * \brief A class for storing arbitrary data in an array. * * If you plan to store large hunks of data, you should consider using * OFBigDataArray, which allocates the memory in pages rather than in bytes. + * + * For security reasons, serialization and deserialization is only implemented + * for OFDataArrays with item size 1. */ -@interface OFDataArray: OFObject +@interface OFDataArray: OFObject { char *data; size_t count; size_t itemSize; }