Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active October 14, 2016 00:34
Show Gist options
  • Save kjunichi/3f9c9ef5d430ad2032d251c1461d5f24 to your computer and use it in GitHub Desktop.
Save kjunichi/3f9c9ef5d430ad2032d251c1461d5f24 to your computer and use it in GitHub Desktop.
2016/10/5

iOS

ファイルの読み込み

NSData *data = [NSData dataWithContentsOfFile:filePath];
NSUInteger len = [data length];
Byte *byteData = (Byte*)malloc(len);
memcpy(byteData, [data bytes], len);

関連

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment