Android Byte Array Reverse getReverseBytesShort(byte[] b, int index)

Here you can find the source of getReverseBytesShort(byte[] b, int index)

Description

get Reverse Bytes Short

Declaration

public static short getReverseBytesShort(byte[] b, int index) 

Method Source Code

//package com.java2s;

public class Main {
    public static short getReverseBytesShort(byte[] b, int index) {
        return (short) (((b[index + 1] << 8) | b[index] & 0xff));
    }/* ww  w  .  j  a va2s  .  c  o m*/
}

Related

  1. reverseWordLatin(byte[] b)
  2. reverse(byte[] byteArray)
  3. reverseBytes(byte[] bytes)
  4. getReverseBytesInt(byte[] bb, int index)
  5. getReverseBytesLong(byte[] bb, int index)
  6. invertedByteArray(byte[] byteArr)