Android Int to Byte Array Convert int2Byte(int value)

Here you can find the source of int2Byte(int value)

Description

int Byte

Declaration

public static byte int2Byte(int value) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte int2Byte(int value) {
        byte b = 0;
        b = (byte) (value & 0xFF);
        return b;
    }//from w w w .j  a v  a  2  s.c o  m
}

Related

  1. getTwoBytes(int i)
  2. getTwoBytes(int i, byte[] target, int pos)
  3. getFourBytes(int i)
  4. getFourBytes(int i, byte[] target, int pos)
  5. splitInt(int value)
  6. int2ByteArray(int value)
  7. int2ByteArray1(int value)
  8. int2ByteArray11(int value)
  9. int2ByteArray3(int value)