parse array

  • Thread starter Thread starter Rustam Asgarov
  • Start date Start date
R

Rustam Asgarov

i have an aray of bites
" private byte[] ByteArray = new byte[4000]; "
How can i parse this array to read integers, in other words
assign first 4 bytes to one integer variable, second 4 bytes to another
itneger variable and so on...

Thanks...
 
i have an aray of bites
" private byte[] ByteArray = new byte[4000]; "
How can i parse this array to read integers, in other words
assign first 4 bytes to one integer variable, second 4 bytes to another
itneger variable and so on...

Use Buffer.BlockCopy() to copy it all over to an int[], or use
BitConverter.ToInt32() to read one int at the time.



Mattias
 
Back
Top