Java Utililty Methods Byte to Int

List of utility methods to do Byte to Int

Description

The list of methods to do Byte to Int are organized into topic(s).

Method

intbyte2int(byte b)
byteint
if (b >= 0)
    return b;
return (256 + b);
intbyte2int(byte b)
Konvertierung byte -> integer ohne Datenverlust
int wert = (int) b;
if (wert < -1) {
    wert += 256;
return wert;
intByte2Int(byte i)
Byte Int
int o;
try {
    o = (int) i;
} catch (Exception e) {
    o = 0;
return o;
intbyte2int(final byte b)
Converts (unsigned) byte to int.
int i = b;
if (b < 0) {
    i = b & 0x7f + 128;
return i;
intbyte2integer(byte b)
Converts a Byte value to an Integer value.
return (b << 24) >> 24;
intbyte2integer(byte b)
byteinteger
return b << 24 >> 24;
intbyteToInt(byte b)
byte To Int
return (int) b & 0xFF;
intbyteToInt(byte b)
Take 1 byte to int
return (b & 0xFF);
intbyteToInt(byte b)
byte To Int
return b & 0xFF;
intbyteToInt(byte b0, byte b1, byte b2, byte b3)
byte To Int
return ((b0 & 0xFF) | ((b1 & 0xFF) << 8) | ((b2 & 0xFF) << 16) | ((b3 & 0xFF) << 24));