75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
* @param itemSize The size of a single element in the OFDataArray
* @param capacity The initial capacity for the OFDataArray
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArrayWithItemSize: (size_t)itemSize
capacity: (size_t)capacity;
/*!
* @brief Creates a new OFDataArary with an item size of 1, containing the data
* of the specified file.
*
* @param path The path of the file
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArrayWithContentsOfFile: (OFString*)path;
/*!
* @brief Creates a new OFDataArray with an item size of 1, containing the data
* of the specified URL.
*
* @param URL The URL to the contents for the OFDataArray
* @return A new autoreleased OFDataArray
|
>
>
|
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
* @param itemSize The size of a single element in the OFDataArray
* @param capacity The initial capacity for the OFDataArray
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArrayWithItemSize: (size_t)itemSize
capacity: (size_t)capacity;
#ifdef OF_HAVE_FILES
/*!
* @brief Creates a new OFDataArary with an item size of 1, containing the data
* of the specified file.
*
* @param path The path of the file
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArrayWithContentsOfFile: (OFString*)path;
#endif
/*!
* @brief Creates a new OFDataArray with an item size of 1, containing the data
* of the specified URL.
*
* @param URL The URL to the contents for the OFDataArray
* @return A new autoreleased OFDataArray
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
* @param itemSize The size of a single element in the OFDataArray
* @param capacity The initial capacity for the OFDataArray
* @return An initialized OFDataArray
*/
- initWithItemSize: (size_t)itemSize
capacity: (size_t)capacity;
/*!
* @brief Initializes an already allocated OFDataArray with an item size of 1,
* containing the data of the specified file.
*
* @param path The path of the file
* @return An initialized OFDataArray
*/
- initWithContentsOfFile: (OFString*)path;
/*!
* @brief Initializes an already allocated OFDataArray with an item size of 1,
* containing the data of the specified URL.
*
* @param URL The URL to the contents for the OFDataArray
* @return A new autoreleased OFDataArray
|
>
>
|
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
* @param itemSize The size of a single element in the OFDataArray
* @param capacity The initial capacity for the OFDataArray
* @return An initialized OFDataArray
*/
- initWithItemSize: (size_t)itemSize
capacity: (size_t)capacity;
#ifdef OF_HAVE_FILES
/*!
* @brief Initializes an already allocated OFDataArray with an item size of 1,
* containing the data of the specified file.
*
* @param path The path of the file
* @return An initialized OFDataArray
*/
- initWithContentsOfFile: (OFString*)path;
#endif
/*!
* @brief Initializes an already allocated OFDataArray with an item size of 1,
* containing the data of the specified URL.
*
* @param URL The URL to the contents for the OFDataArray
* @return A new autoreleased OFDataArray
|
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
|
/*!
* @brief Returns a string containing the data in Base64 encoding.
*
* @return A string containing the data in Base64 encoding
*/
- (OFString*)stringByBase64Encoding;
/*!
* @brief Writes the OFDataArray into the specified file.
*
* @param path The path of the file to write to
*/
- (void)writeToFile: (OFString*)path;
@end
/*!
* @brief A class for storing arbitrary big data in an array.
*
* The OFBigDataArray class is a class for storing arbitrary data in an array
* and is designed to store large hunks of data. Therefore, it allocates
|
>
>
|
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
|
/*!
* @brief Returns a string containing the data in Base64 encoding.
*
* @return A string containing the data in Base64 encoding
*/
- (OFString*)stringByBase64Encoding;
#ifdef OF_HAVE_FILES
/*!
* @brief Writes the OFDataArray into the specified file.
*
* @param path The path of the file to write to
*/
- (void)writeToFile: (OFString*)path;
#endif
@end
/*!
* @brief A class for storing arbitrary big data in an array.
*
* The OFBigDataArray class is a class for storing arbitrary data in an array
* and is designed to store large hunks of data. Therefore, it allocates
|