Skip to content

Instantly share code, notes, and snippets.

@ksksue
Created December 9, 2014 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksksue/7f7c8941e3ae4d284761 to your computer and use it in GitHub Desktop.
Save ksksue/7f7c8941e3ae4d284761 to your computer and use it in GitHub Desktop.
uint8_t* array = (uint8_t*)malloc(sizeof(uint8_t)*100);
NSMutableData* data = [NSMutableData dataWithLength:sizeof(uint8_t) * 100];
uint8_t* array = [data mutableBytes];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment