How to read some bytes from BYTE*

Posted by chekalin-v on Stack Overflow See other posts from Stack Overflow or by chekalin-v
Published on 2010-03-19T08:47:59Z Indexed on 2010/03/19 8:51 UTC
Read the original article Hit count: 250

Filed under:
|
|

I have BYTE pointer. For example the length of this BYTE array is 10. How can I read 4 bytes from 3 position BYTE array?

Now I doing it so

BYTE *source = "1234567890\0";
BYTE* tmp = new BYTE[4+1]();
for(int i=0; i<4; i++)
{
tmp[i] = source[i+3];
}

© Stack Overflow or respective owner

Related posts about c++

Related posts about bytearray