Android Byte Array Reverse getReverseBytesInt(byte[] bb, int index)

Here you can find the source of getReverseBytesInt(byte[] bb, int index)

Description

get Reverse Bytes Int

Declaration

public static int getReverseBytesInt(byte[] bb, int index) 

Method Source Code

//package com.java2s;

public class Main {

    public static int getReverseBytesInt(byte[] bb, int index) {
        return (int) ((((bb[index + 3] & 0xff) << 24)
                | ((bb[index + 2] & 0xff) << 16)
                | ((bb[index + 1] & 0xff) << 8) | ((bb[index + 0] & 0xff) << 0)));
    }/* w w  w  . j ava  2  s  .  c  om*/
}

Related

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