Android Byte Array to Short Convert byte2Short(byte bin)

Here you can find the source of byte2Short(byte bin)

Description

byte Short

Declaration

public static short byte2Short(byte bin) 

Method Source Code

//package com.java2s;

public class Main {
    public static short byte2Short(byte bin) {
        return (short) (bin & 0xFF);

    }//from w w w.  j a  v  a2 s .  c  om
}

Related

  1. bytesToShort(byte[] b)
  2. bytesToShort(byte[] b)
  3. toShort(byte[] in)
  4. byteArray2Short(byte[] b)
  5. byteArrayToShort(byte[] b, int offset)
  6. bytesBE2shorts(byte[] b)
  7. bytesBE2sshort(byte[] b, int off)