Android Byte Array to Short Convert makeShort(byte b1, byte b0)

Here you can find the source of makeShort(byte b1, byte b0)

Description

make Short

Declaration

static private short makeShort(byte b1, byte b0) 

Method Source Code

//package com.java2s;

public class Main {
    static private short makeShort(byte b1, byte b0) {
        return (short) ((b1 << 8) | (b0 & 0xff));
    }/*  www .j  a  v a 2  s  .  com*/
}

Related

  1. getShort(byte[] buf, int pos, boolean bigEndian)
  2. getShort(byte[] bytes)
  3. toShort(byte[] b, int pos)
  4. toShort(byte[] data)
  5. toShort(byte[] data)
  6. bytes2short(byte[] data)
  7. ByteToString(byte[] byteArray)