ObjQt  Diff

Differences From Artifact [37ebb8afd0]:

To Artifact [d8eb348c3a]:


19
20
21
22
23
24
25
26

27
28
29
30
31
32
33
34
35
36
37

38
39
19
20
21
22
23
24
25

26
27
28
29
30
31
32
33
34
35
36

37
38
39







-
+










-
+


 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#import "OFDataArray+QByteArray.h"

@implementation OFDataArray (QByteArray)
+ (instancetype)dataArrayWithQByteArray: (const QByteArray&)qByteArray
+ (instancetype)dataArrayWithQByteArray: (const QByteArray &)qByteArray
{
	OFDataArray *ret = [OFDataArray dataArray];
	[ret addItems: qByteArray.data()
		count: qByteArray.count()];

	return ret;
}

- (QByteArray)qByteArray
{
	return QByteArray((char*)[self items], [self count] * [self itemSize]);
	return QByteArray((char *)[self items], [self count] * [self itemSize]);
}
@end