Does Cocoa have a true alternative to C's memcpy()?
Where I can do:
and this data would be read as the following binary data: "\x01\x00\x00\x00" (if viewed in a standard hex editor).
What needs to be done for Cocoa to produce this same task?
Where I can do:
Code:
unsigned char buf[4];
int x = 1;
memcpy (buf, &x, 4);
and this data would be read as the following binary data: "\x01\x00\x00\x00" (if viewed in a standard hex editor).
What needs to be done for Cocoa to produce this same task?