Java Byte to Unsigned Int byteToul(byte b)

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

Description

byte Toul

License

Open Source License

Declaration

private static long byteToul(byte b) 

Method Source Code

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

public class Main {
    private static long byteToul(byte b) {
        return b > 0 ? b : (b & 0x7F + 128);
    }//from   w  ww.  j  a  v  a  2s  . co m
}

Related

  1. asUnsignedLong(byte signedValue)
  2. asUnsignedShort(byte signedValue)
  3. asUnsignedShort(short s)
  4. byteToUByte(byte value)
  5. byteToUInt(byte b)
  6. byteToUnInt(Byte sByte)
  7. byteToUnsigned(byte b)
  8. byteToUnsigned(byte b)
  9. byteToUnsigned(byte signed)