Android Byte Array Bit Get inverseByteArrayBits(byte[] arr0)

Here you can find the source of inverseByteArrayBits(byte[] arr0)

Description

inverse Byte Array Bits

License

Open Source License

Declaration

public static byte[] inverseByteArrayBits(byte[] arr0) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] inverseByteArrayBits(byte[] arr0) {
        byte[] returnArray = new byte[arr0.length];

        for (int i = 0; i < arr0.length; i++) {
            returnArray[i] = (byte) ~arr0[i];
        }//from  w  ww.  j a  v a2  s.c om

        return returnArray;
    }
}

Related

  1. getByteNetOrder(byte[] theBytes, int idx, int size)
  2. getByteNetOrderTo_unit16(byte[] theBytes, int idx)
  3. getByteNetOrderTo_unit32(byte[] theBytes, int idx)
  4. bitwiseAndByteArrays(byte[] arr0, byte[] arr1)
  5. bitwiseOrByteArrays(byte[] arr0, byte[] arr1)