Java Unsigned Number Create unsigned16(short s)

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

Description

unsigned

License

Apache License

Declaration

public static long unsigned16(short s) 

Method Source Code

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

public class Main {
    public static long unsigned16(short s) {
        return s & 0xFFFFL;
    }//from  ww  w .  j a va  2s .c  om

    public static long unsigned16(long s) {
        return s & 0xFFFFL;
    }
}

Related

  1. unsigned(byte data)
  2. unsigned(byte value)
  3. unsigned(int num)
  4. unsigned(int val)
  5. unsigned(short value)
  6. unsigned32ToBytes(long value)
  7. unsigned32ToInt(byte[] bytes)
  8. unsigned4BytesToInt(byte[] buf, int pos)
  9. unsigned8(byte b)