48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArray;
/*!
* @brief Creates a new OFDataArray whose items all have the same size.
*
* @param itemSize The size of each element in the OFDataArray
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArrayWithItemSize: (size_t)itemSize;
/*!
* @brief Creates a new OFDataArary with an item size of 1, containing the data
* of the specified file.
|
|
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArray;
/*!
* @brief Creates a new OFDataArray whose items all have the same size.
*
* @param itemSize The size of a single element in the OFDataArray
* @return A new autoreleased OFDataArray
*/
+ (instancetype)dataArrayWithItemSize: (size_t)itemSize;
/*!
* @brief Creates a new OFDataArary with an item size of 1, containing the data
* of the specified file.
|
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
*/
+ (instancetype)dataArrayWithBase64EncodedString: (OFString*)string;
/*!
* @brief Initializes an already allocated OFDataArray whose items all have the
* same size.
*
* @param itemSize The size of each element in the OFDataArray
* @return An initialized OFDataArray
*/
- initWithItemSize: (size_t)itemSize;
/*!
* @brief Initializes an already allocated OFDataArray with an item size of 1,
* containing the data of the specified file.
|
|
|
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
*/
+ (instancetype)dataArrayWithBase64EncodedString: (OFString*)string;
/*!
* @brief Initializes an already allocated OFDataArray whose items all have the
* same size.
*
* @param itemSize The size of a single element in the OFDataArray
* @return An initialized OFDataArray
*/
- initWithItemSize: (size_t)itemSize;
/*!
* @brief Initializes an already allocated OFDataArray with an item size of 1,
* containing the data of the specified file.
|
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
* @brief Returns the number of items in the OFDataArray.
*
* @return The number of items in the OFDataArray
*/
- (size_t)count;
/*!
* @brief Returns the size of each item in the OFDataArray in bytes.
*
* @return The size of each item in the OFDataArray in bytes
*/
- (size_t)itemSize;
/*!
* @brief Returns all items of the OFDataArray as a C array.
*
* @warning The pointer is only valid until the OFDataArray is changed!
|
|
|
|
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
* @brief Returns the number of items in the OFDataArray.
*
* @return The number of items in the OFDataArray
*/
- (size_t)count;
/*!
* @brief Returns the size of a single item in the OFDataArray in bytes.
*
* @return The size of a single item in the OFDataArray in bytes
*/
- (size_t)itemSize;
/*!
* @brief Returns all items of the OFDataArray as a C array.
*
* @warning The pointer is only valid until the OFDataArray is changed!
|