Android Int to Byte Array Convert intForByte(byte b)

Here you can find the source of intForByte(byte b)

Description

int For Byte

License

Open Source License

Declaration

public static int intForByte(byte b) 

Method Source Code

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

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

Related

  1. int2byteWithInvert(int input)
  2. int2bytesBE(int val, byte[] b, int off)
  3. int2bytesLE(int val, byte[] b, int off)
  4. int2hex(int i)
  5. intFitsIn(final int value)
  6. intToByte(int number)
  7. intToByteArray(int a)
  8. intToByteArray(int i)
  9. intToByteArray(int value)