Java Byte Array Create toByteArrayShifted(int... arguments)

Here you can find the source of toByteArrayShifted(int... arguments)

Description

to Byte Array Shifted

License

BSD License

Declaration

public static byte[] toByteArrayShifted(int... arguments) 

Method Source Code

//package com.java2s;
/**//w  ww  . j a  va 2  s. c om
 * 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[] 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. toByteArrayFromString(String value, int radix)
  2. toByteArrayLE(int value)
  3. toByteArrayMM(int value)
  4. toByteArrayNoConversion(String textz)
  5. toByteArrays(String s)
  6. toByteArrayShifted2(int[][] intArray)
  7. ToByteArrayString(byte[] bytes)
  8. toByteArrayV4(String address)
  9. toByteArrayV6(String address)