Java Unsigned Byte Create toUnsignedByte(int value)

Here you can find the source of toUnsignedByte(int value)

Description

to Unsigned Byte

License

Apache License

Declaration

public static int toUnsignedByte(int value) 

Method Source Code

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

public class Main {
    private static final int UNSIGNED_BYTE_MAX = 0xff;

    public static int toUnsignedByte(int value) {
        return value &= UNSIGNED_BYTE_MAX;
    }/*from   ww w  .  java  2 s  . c o  m*/
}

Related

  1. toUnsignedByte(byte b)
  2. toUnsignedByte(byte value)
  3. toUnsignedByte(byte[] buf, int pos)
  4. toUnsignedByte(char[] bytes, boolean le)
  5. toUnsignedByte(int value)
  6. toUnsignedByteArray(byte[] b)
  7. toUnsignedBytes(long convert)