Quantcast
Channel: Virtualisation
Viewing all articles
Browse latest Browse all 277

How to get byte[] from NSData on moe?

$
0
0

 I need some like this

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

But on java


Viewing all articles
Browse latest Browse all 277

Trending Articles