This topic is now archived and is closed to further replies.


byte array to an integer array

Recommended Posts

byte[] bytes = ...;
int [] ints = new int[bytes.length];

for(int i=0; i < ints.length; ++i)
ints[ i ] = (int)bytes[ i ];

- Pete

[edited by - Pete_ on April 3, 2004 5:01:08 PM]

Share this post

Link to post
Share on other sites