- Code: Select all
int k=move[0]&0xFF
its working in some cases like ifthe byte value is below 250 or smthing like dat ...but it fails sometimes there is another method
- Code: Select all
public static int readIntFromByteArray(byte[] byteArray, int index){
return
((byteArray[index++]&0xFF)<<24) |
((byteArray[index++]&0xFF)<<16) |
((byteArray[index++]&0xFF)<<8) |
( byteArray[index]&0xFF);
}
but its not returning any value i guess
help with any solution
