Java Unsigned Number Create unsignedToBytes(byte b)

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

Description

unsigned To Bytes

License

Open Source License

Declaration

public static int unsignedToBytes(byte b) 

Method Source Code

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

public class Main {
    public static int unsignedToBytes(byte b) {
        return b & 0xFF;
    }/*  ww  w  .j av  a  2s .c om*/
}

Related

  1. unsignedShortBytesToInt(byte[] b)
  2. unsignedShortToInt(byte[] b)
  3. unsignedShortToInt(final byte[] b)
  4. unsignedShortToInt(short n)
  5. unsignedSubOverflow(int operand1, int operand2)
  6. unsignedToSigned(int unsigned, int size)
  7. unsignedToSigned(int[] ints)
  8. unsignedToSigned(int[] unsignedBytes)
  9. unsignedToSigned(long value, int size)