Java Integer to intToBigEndian(int value, byte[] array, int index)

Here you can find the source of intToBigEndian(int value, byte[] array, int index)

Description

int To Big Endian

License

LGPL

Declaration

private static void intToBigEndian(int value, byte[] array, int index) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    private static void intToBigEndian(int value, byte[] array, int index) {
        array[index] = (byte) (value >> 24);
        array[index + 1] = (byte) (value >> 16);
        array[index + 2] = (byte) (value >> 8);
        array[index + 3] = (byte) (value);
    }/*w  ww. j a  va 2  s .  co  m*/
}

Related

  1. intToAlpha(Integer no)
  2. intToASN1(byte[] d, int idx, int val)
  3. intToBase32(int n)
  4. intToBasicType(int i, Class clazz)
  5. intToBcd(int src, int len, int flag)
  6. intToBigEndianByteArray(int in)
  7. intToBlue(int color)
  8. IntToBuf2BE(int val, byte[] buf, int offset)
  9. intToBuffer(int i, byte[] ioBuffer)