I create a NSData and use the function
- (const void *)bytes;
So, it return the bytes in a const void * variable. If I read the memory manually I will find this:
98 F3 00 76 84 //Then a lot of zero
Use strlen not work because the 00. But it will be aways the same size: 10 hexa lenght. So, to create a manually size_t, I will use:
size_t mysize = 0x0A
Or I have use the size in bits:
size_t mysize = 0x28
Is any of this correct?
The
NSDatacontains the length.