Java Integer to Byte intToByte(byte[] buf, int off, int value)

Here you can find the source of intToByte(byte[] buf, int off, int value)

Description

int To Byte

License

Open Source License

Declaration

public static void intToByte(byte[] buf, int off, int value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void intToByte(byte[] buf, int off, int value) {
        buf[0 + off] = (byte) ((value >>> 24) & 0xFF);
        buf[1 + off] = (byte) ((value >>> 16) & 0xFF);
        buf[2 + off] = (byte) ((value >>> 8) & 0xFF);
        buf[3 + off] = (byte) ((value >>> 0) & 0xFF);
    }//ww w.j av a2 s .co  m
}

Related

  1. int2ToByteArray(int value)
  2. int2ubyte(int in)
  3. intAsByte(int value)
  4. intTo1Byte(int x)
  5. intTo4Byte(int i)
  6. intToByte(final int i)
  7. intToByte(int i)
  8. IntToByte(int i)
  9. intToByte(int i)