Alex Rivera | Logout

Byte array in objective-c

Asked 2009-05-18T07:36:14.463
16

How can I create a byte array in Objective-C?

I have some data like this:0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, 0x89, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, 0x89, that I want to prepare as a byte array.

Edit
Report

1 Answer

7

Either use the plain C solution given by mouviciel or read the class description of NSData and NSMutableData.

answered 2009-05-18T08:22:13.960

Your Answer