class ByteUtilities {

    static void shift(byte[] bytes, byte[] newBytes, int newByteLength)
    {
        if (newBytes.length >= bytes.length)
        {
            System.arraycopy(newBytes, newByteLength - bytes.length, bytes, 0, bytes.length);
        }
        else
        {
            System.arraycopy(bytes, newByteLength, bytes, 0, bytes.length - newByteLength);
            System.arraycopy(newBytes, 0, bytes, bytes.length - newByteLength, newByteLength);
        }
    }

    private  ByteUtilities();

}