I have a function that has an array pointer passed it to modify stuff in an array:
- (void) arrayFunction:(Byte[])targetarray
{
// do stuff to targetarray
}
It’s an array of type Byte, but I don’t think that I’ve put the right thing in the round brackets. What should it be instead of (Byte[])? There may be several arrays of different sizes passed to this function
Thanks in advance!
if it’s a plain-old array, I would just do this:
Or, to be more “OO-ish”, use NSData instead of a byte array: