Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to convert int array to byte array

Java: How to convert int array to byte array
{filelink=4679}

public class Tab_Conversion2 {
  public static byte[] int2byte(int[]int_Tab)
  {
    int intTab_Length = int_Tab.length;
    byte[]byte_Tab = new byte[intTab_Length >> 0) & 0xff);
        byte_Tab[j++] = (byte) ((x >>> 8) & 0xff);
        byte_Tab[j++] = (byte) ((x >>> 16) & 0xff);
        byte_Tab[j++] = (byte) ((x >>> 24) & 0xff);
    	}
    return byte_Tab;
	}
}

Users who found this page were searching for:

  • python list to create class instances
  • java int array byte array
  • python int to byte array
  • python ftp server example
  • java int to bytes
  • how to use format() in Java
  • method for underline in font in java swing

No comments yet.

Leave a Comment