Java Unsigned Byte Create toUnsignedByte(byte b)

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

Description

This method gets eventually inlined, becoming very fast

License

Open Source License

Declaration


public static final int toUnsignedByte(byte b) 

Method Source Code

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

public class Main {
    /**/* w  ww.ja  v  a 2s.  c om*/
     * This method gets eventually inlined, becoming very fast
     */

    public static final int toUnsignedByte(byte b) {
        return (0x000000FF & b);
    }
}

Related

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