Android Byte Array Reverse reverse(byte[] byteArray)

Here you can find the source of reverse(byte[] byteArray)

Description

reverse

Declaration

public static byte[] reverse(byte[] byteArray) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] reverse(byte[] byteArray) {
        byte[] rev = new byte[byteArray.length];
        for (int i = 0; i < byteArray.length; i++) {
            rev[byteArray.length - (i + 1)] = byteArray[i];
        }//from w  ww.  ja v a 2  s.  co  m
        return rev;
    }
}

Related

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