Java Unsigned Number Create unsignedUpcast(short s)

Here you can find the source of unsignedUpcast(short s)

Description

unsigned Upcast

License

Open Source License

Declaration

public static int unsignedUpcast(short s) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    public static int unsignedUpcast(short s) {
        return s & 0xFFFF;
    }// www .  j  a v a 2  s  .  c om

    public static int unsignedUpcast(byte b) {
        return b & 0xFF;
    }
}

Related

  1. unsignedToSigned(int[] unsignedBytes)
  2. unsignedToSigned(long value, int size)
  3. unsignedToSigned16(char value)
  4. unsignedToSigned8(char value)
  5. unsignedUnion2by2(final short[] set1, final int length1, final short[] set2, final int length2, final short[] buffer)
  6. unsignedValue(byte signedByte)
  7. unsignedVLQSize(int value)
  8. unsignedZerofill(Integer number, int offset)
  9. unsignL(byte value)