Java Byte Array Create toByteArrayShifted2(int[][] intArray)

Here you can find the source of toByteArrayShifted2(int[][] intArray)

Description

to Byte Array Shifted

License

BSD License

Declaration

public static byte[][] toByteArrayShifted2(int[][] intArray) 

Method Source Code

//package com.java2s;
/**/*  w  w  w  .  ja  va 2  s .  com*/
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author Jay Codec
 * 
 */

public class Main {
    public static byte[][] toByteArrayShifted2(int[][] intArray) {
        byte[][] result = new byte[intArray.length][];
        for (int i = 0; i < intArray.length; i++) {
            result[i] = toByteArrayShifted(intArray[i]);
        }
        return result;
    }

    public static byte[] toByteArrayShifted(int... arguments) {
        byte[] result = new byte[arguments.length];
        for (int i = 0; i < arguments.length; i++)
            result[i] = (byte) (arguments[i] - 128);
        return result;
    }
}

Related

  1. toByteArrayLE(int value)
  2. toByteArrayMM(int value)
  3. toByteArrayNoConversion(String textz)
  4. toByteArrays(String s)
  5. toByteArrayShifted(int... arguments)
  6. ToByteArrayString(byte[] bytes)
  7. toByteArrayV4(String address)
  8. toByteArrayV6(String address)
  9. toByteInfo(long bytes)