Java Byte to Int ubyte2int(byte in)

Here you can find the source of ubyte2int(byte in)

Description

ubyteint

License

Apache License

Declaration

public static final int ubyte2int(byte in) 

Method Source Code

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

public class Main {
    public static final int ubyte2int(byte in) {
        return (in < 0) ? (int) in + 256 : (int) in;
    }/*from  w w  w.  j  ava  2s .c o  m*/
}

Related

  1. byteToInteger(final byte value)
  2. byteToNum(byte bByte)
  3. byteToNumString(byte b)
  4. byteToOffset(int value)
  5. byteToPositiveInt(byte inByte)
  6. ubyte2int(final byte x)