iphone NSMutableData bytes index
<p>for example,I want to get the value of instance of NSMutableData by an index,how should I do?I do it like this:</p>

<pre><code>Byte *tempByte = (Byte*)malloc(1); 
memcpy(tempByte, [[nsmutabledata subdataWithRange:NSMakeRange(5, 5)] bytes], 1) ;
</code></pre>

<p>but I think it is not a good method.
update:
I have solved the problem.thank you...</p>
